- 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 world of data science and analytics, having strong tools and a solid workflow can be far more important than revisitin...
-
Learning Data Science doesn’t have to be expensive. Whether you’re a beginner or an experienced analyst, some of the best books in Data Sc...
-
In a world where data is everywhere and machine learning (ML) is becoming central to many industries — from finance to healthcare to e‑com...
-
If you're learning Python or looking to level up your skills, you’re in luck! Here are 6 amazing Python books available for FREE — c...
-
In the fast-paced world of software development , mastering version control is essential. Git and GitHub have become industry standards, ...
-
๐ Introduction If you’re passionate about learning Python — one of the most powerful programming languages — you don’t need to spend a f...
-
Code Explanation: 1. Class Definition class A: This defines a class named A. A class is a blueprint for creating objects. Any object creat...
-
Data is the foundation of modern decision-making. From personalized recommendations and fraud detection to healthcare analytics and autono...
-
With the rapid growth of large language models (LLMs) and generative AI, the concept of AI systems as tools is evolving. Instead of just ...
-
Final Output [1 2 3] ๐ The array does NOT change. Why the Array Doesn't Change ๐น 1. for i in a: gives you a copy of each elemen...


