Saturday, 9 April 2022
Sunday, 3 April 2022
Day 6 : Text to Handwriting using Python
Python Coding April 03, 2022 Python No comments
Day 5 : Roman Numbers to Decimals in Python
Python Coding April 03, 2022 Python No comments
#!/usr/bin/env python
# coding: utf-8
# # Roman Numbers to Decimals in Python
# In[6]:
tallies = {'I': 1,'V': 5,'X': 10,'L': 50,
'C': 100,'D': 500,'M': 1000}
def RomanNumeralToDecimal(romanNumeral):
sum = 0
for i in range(len(romanNumeral) - 1):
left = romanNumeral[i]
right = romanNumeral[i + 1]
if tallies[left] < tallies[right]:
sum -= tallies[left]
else:
sum += tallies[left]
sum += tallies[romanNumeral[-1]]
return sum
roman=input("Enter Roman Numbers :")
RomanNumeralToDecimal(roman)
#clcoding.com
# In[ ]:
Day 4 : LCM using Python
Python Coding April 03, 2022 Python No comments
Day 3 : Palindrome Words using Python
Python Coding April 03, 2022 Python No comments
Day 2 : Count Character Occurrences using Python
Python Coding April 03, 2022 Python No comments
#!/usr/bin/env python
# coding: utf-8
# # Count Character Occurrences using Python
# In[5]:
def count_characters(s):
count = {}
for i in s:
if i in count:
count[i] += 1
else:
count[i] = 1
print(count)
word=input("Enter your string:")
count_characters(word)
#clcoding.com
Day 1: Line continuation characters in Python
Python Coding April 03, 2022 Python No comments
Tuesday, 29 March 2022
How to generate password using python?
- random(): Returns a random float number between 0 and 1
- sample(): Returns a given sample of a sequence
- shuffle(): Takes a sequence and returns the sequence in a random order
- choice(): Returns a random element from the given sequence
- choices(): Returns a list with a random selection from the given sequence
- randint(): Returns a random number between the given range
- uniform(): Returns a random float number between two given parameters
Friday, 25 March 2022
Sequence Matcher in Python
Python Coding March 25, 2022 Python No comments
#!/usr/bin/env python
# coding: utf-8
# # Sequence Matcher in Python
# In[3]:
from difflib import SequenceMatcher
text1 = input("Enter 1st sentence : ")
text2 = input("Enter 2nd sentence : ")
sequenceScore = SequenceMatcher(None, text1, text2).ratio()
print(f"Both are {sequenceScore * 100} % similar")
#clcoding.com
# In[ ]:
Age Calculator using Python
Python Coding March 25, 2022 Python No comments
Saturday, 19 March 2022
Image to Pencil Sketch in Python
Python Coding March 19, 2022 Python No comments
Sunday, 13 March 2022
Voice Recorder in Python
Python Coding March 13, 2022 Python No comments
Download YouTube videos in Python
Python Coding March 13, 2022 Python No comments
Captcha in Python
Python Coding March 13, 2022 Python No comments
Secrets Python module
Python Coding March 13, 2022 Python No comments
Saturday, 5 March 2022
Mouse and keyboard automation using Python
Python Coding March 05, 2022 Python No comments
Friday, 4 March 2022
Python Secrets Module
Python Coding March 04, 2022 Python No comments
Monday, 28 February 2022
Digital Watch in Python using Turtle
Python Coding February 28, 2022 Python No comments
Saturday, 26 February 2022
Creating an Audiobook in Python
Python Coding February 26, 2022 Python No comments
Python module whatismyip
Python Coding February 26, 2022 Python No comments
Popular Posts
-
Advantages of Object Oriented Programming Object oriented programming has several advantage to the programmer and user. Through inheri...
-
Activity_main.xml File <? xml version= "1.0" encoding= "utf-8" ?> < LinearLayout xmlns: android = &qu...
-
Procedure Oriented Programming Language:- High level language such as COBOL , FORTRAN AND C is commonly known as procedure oriented progr...
-
Build interactive, data-driven websites with the potent combination of open-source technologies and web standards, even if you have only ...
-
What is Python? → Python is an interpreted High level programming Language for General purpose programming. Python is created by Gui...
-
Activity Main : <? xml version ="1.0" encoding ="utf-8" ?> < androidx.constraintlayout.widget.ConstraintLayout...
-
Java :- It is a fast, secure and reliable general purpose computer programming language. Python :- A Readable, efficient and powerfu...
-
Python is a high-level programming language that is widely used in various kinds of programming activities. Python is known for its objec...
-
Pseudocode is a compact and informal high-level description of a computer programming algorithm. Pseudo-code typically omits details tha...
-
Business Analytics Definition "Study of business data using statistical technique and programming for creating decision suppo...