Saturday, 16 April 2022
Day 12 : Language Detection using Python
Python Coding April 16, 2022 Python No comments
Saturday, 9 April 2022
Day 11 : Python Program to Generate Password
Python Coding April 09, 2022 Python No comments
Day 10 : Dice Roll Simulator in Python
Python Coding April 09, 2022 Python No comments
Day 9 : BMI Calculator with Python
Python Coding April 09, 2022 Python No comments
#!/usr/bin/env python
# coding: utf-8
# # BMI Calculator with Python
# In[7]:
Height=float(input("Enter your height in centimeters: "))
Weight=float(input("Enter your Weight in Kg: "))
Height = Height/100
BMI=Weight/(Height*Height)
print("your Body Mass Index is: ",BMI)
if(BMI>0):
if(BMI<=16):
print("you are severely underweight")
elif(BMI<=18.5):
print("you are underweight")
elif(BMI<=25):
print("you are Healthy")
elif(BMI<=30):
print("you are overweight")
else: print("you are severely overweight")
else:("enter valid details")
#clcoding.com
# In[ ]:
Day 8 : Fahrenheit to Celsius in Python
Python Coding April 09, 2022 Python No comments
Day 7 : Treemap using Python
Python Coding April 09, 2022 Python No comments
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
Thursday, 17 February 2022
Collections Library in Python
Python Coding February 17, 2022 Python No comments
Saturday, 5 February 2022
Address detail through python code
Python Coding February 05, 2022 Python No comments
Track phone number using python
Python Coding February 05, 2022 Python No comments
Formatting Dates and Time Strings in Python
Python Coding February 05, 2022 Python No comments
Python statistics module
Python Coding February 05, 2022 Python No comments
Saturday, 8 January 2022
Popular Python libraries used in Data Science
Author January 08, 2022 Python No comments
Scientific Computing and Statistics
NumPy (Numerical Python)—Python does not have a built-in array data structure. It uses lists, which are convenient but relatively slow. NumPy provides the high-performance ndarray data structure to represent lists and matrices, and it also provides routines for processing such data structures.
SciPy (Scientific Python)—Built on NumPy, SciPy adds routines for scientific processing, such as integrals, differential equations, additional matrix processing and more. scipy.org controls SciPy and NumPy.
StatsModels—Provides support for estimations of statistical models, statistical tests and statistical data exploration.
Data Manipulation and Analysis :
Visualization :
Machine Learning, Deep Learning, and Reinforcement Learning
Natural Language Processing (NLP)
Friday, 31 December 2021
Happy New Year 2022 in Python using Turtle Library
Author December 31, 2021 Python No comments
Monday, 29 November 2021
Numpy In Python
Author November 29, 2021 Python No comments
Introduction to NumPy
Array
NumPy Array
Creation of array
Some Operations on Numpy array
Saturday, 27 November 2021
Sequence Data Part 5 | Day 9 | General Sequence Data Methods | Part I
Author November 27, 2021 Python No comments
General Sequence Data Methods | Part I
Some of the methods that we can apply on any sequential data.
So basically Python methods are like a Python function, but it must be called on an object.
And Python also has a set of built in methods that you can use on sequential data, but note that the method is going to written new values, but they are not going to change the original data at all. So we are going to look at few examples on how we can call the methods on the given sequential data.
String Methods
4) .find() - And you can also find the index of a given letter, for example, if you want to particularly know the index of a given character then you can give that inside the find method. So that should be given the single quote. So the index of n is 4.
6) .replace() - Using the method replace you will be able to replace any word with the given word. For example, you can apply or you can call that on the string and that is strsample and inside method you can just give string to be searched that is fun. So we are searching for the word fun in the strsample string and I am going to replace fun with joyful. So let me just try this. So you are getting learn is joyful. Instead of getting learn is fun which was the original string.
Popular Posts
-
Exploring Python Web Scraping with Coursera’s Guided Project In today’s digital era, data has become a crucial asset. From market trends t...
-
What does the following Python code do? arr = [10, 20, 30, 40, 50] result = arr[1:4] print(result) [10, 20, 30] [20, 30, 40] [20, 30, 40, ...
-
Explanation: Tuple t Creation : t is a tuple with three elements: 1 → an integer [2, 3] → a mutable list 4 → another integer So, t looks ...
-
What will the following code output? a = [1, 2, 3] b = a[:] a[1] = 5 print(a, b) [1, 5, 3] [1, 5, 3] [1, 2, 3] [1, 2, 3] [1, 5, 3] [1, 2, ...
-
What will the following Python code output? What will the following Python code output? arr = [1, 3, 5, 7, 9] res = arr[::-1][::2] print(re...
-
Through a recent series of breakthroughs, deep learning has boosted the entire field of machine learning. Now, even programmers who know c...
-
What will be the output of the following code? import numpy as np arr = np.array([1, 2, 3, 4]) result = arr * arr[::-1] print(result) [1, ...
-
What will the following code output? import pandas as pd data = {'Name': ['Alice', 'Bob'], 'Age': [25, 3...
-
What will the output of the following code be? def puzzle(): a, b, *c, d = (10, 20, 30, 40, 50) return a, b, c, d print(puzzle()) ...
-
Step-by-Step Explanation: Dictionary Creation: my_dict = {'a': 1, 'b': 2, 'c': 3} A dictionary named my_dict is crea...