- 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
Tuesday, 29 March 2022
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
Popular Posts
-
๐งญ Introduction In the 21st century, data has become one of the most valuable resources, influencing decisions in science, business, heal...
-
Explanation: ๐น Line 1: Creating the List x = [1, 2, 3] A list named x is created. It contains three elements: Index 0 → 1 Index 1 → 2 Ind...
-
Explanation: ๐ง 1. List Creation x = [1,2,3] Here, a list named x is created with elements: Index 0 → 1 Index 1 → 2 Index 2 → 3 ๐ So the li...
-
Explanation: ๐น Step 1: Understand Boolean Values in Python In Python, booleans are treated like integers: True = 1 False = 0 ๐น Step 2: R...
-
Deep learning is at the heart of modern Artificial Intelligence — powering technologies like chatbots, recommendation systems, image recog...
-
๐ Day 34/150 – Armstrong Number in Python An Armstrong number is a number that is equal to the sum of its own digits raised to the power...
-
Explanation: ๐น Step 1: Create List x = [1,2,3] A list x is created ๐ Values inside list: 1, 2, 3 ๐น Step 2: Understand sum() Function su...
-
Explanation: ๐น Step 1: Create Tuple x = (1,[2,3]) x is a tuple (immutable) Inside tuple: 1 → integer [2,3] → mutable list ๐น Step 2: Appl...
-
๐ Day 35/150 – Count Digits in a Number in Python Counting digits means finding how many digits are present in a number. Examples: 12345 ...
-
๐ Day 37/150 – Multiplication Table in Python A multiplication table shows the result of multiplying a number with a series of numbers. ...


