- 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 Artificial intelligence is rapidly transforming industries, creating a growing demand for professionals who can design, buil...
-
What you'll learn Master the most up-to-date practical skills and knowledge that data scientists use in their daily roles Learn the to...
-
Microsoft Power BI Data Analyst Professional Certificate What you'll learn Learn to use Power BI to connect to data sources and transf...
-
Introduction Machine learning has become one of the most important technologies driving modern data science, artificial intelligence, and ...
-
Code Explanation: ๐น 1. Creating a Tuple t = (1, 2, 3, 4) A tuple named t is created. It contains 4 elements: 1, 2, 3, 4. Tuples are immut...
-
In today’s digital world, learning to code isn’t just for software engineers — it’s a valuable skill across industries from data science t...
-
What You’ll Learn Upon completing the module, you’ll be able to: Define and locate generative AI within the broader AI/ML spectrum Disting...
-
Learn to Program and Analyze Data with Python. Develop programs to gather, clean, analyze, and visualize data. Specialization - 5 course s...
-
In a world increasingly shaped by data, the demand for professionals who can make sense of it has never been higher. Businesses, governmen...
-
Introduction Deep learning has become a driving force behind many modern artificial intelligence applications, including image recognitio...


