Python 1-7
Python 1-7
LABORATORY PROGRAMS
1a. Write a python program to find the best of two test average marks out of three
test's marks accepted from the user.
1b. Develop a Python program to check whether a given number is palindrome or not
and also count the number of occurrences of each digit in the input number.
2a. Defined as a function F as Fn = Fn-1 + Fn-2. Write a Python program which accepts a
value for N (where N >0) as input and pass this value to the function. Display suitable error
message if the condition for input value is not followed.
2b. Develop a python program to convert binary to decimal, octal to hexadecimal using
functions.
3a. Write a Python program that accepts a sentence and find the number of words, digits,
uppercase letters and lowercase letters.
3b. Write a Python program to find the string similarity between two given strings
Sample Output: Sample Output:
Original string: Original string:
Python Exercises Python Exercises
Python Exercises Python Exercise
Similarity between two said strings: Similarity between two said strings:
1.0 0.967741935483871
4a. Write a Python program to Demonstrate how to Draw a Bar Plot using Matplotlib.
4b. Write a Python program to Demonstrate how to Draw a Scatter Plot using Matplotlib
5a. Write a Python program to Demonstrate how to Draw a Histogram Plot using
Matplotlib.
5b. Write a Python program to Demonstrate how to Draw a Pie Chart using Matplotlib.
6b. Write a Python program to illustrate liner plotting with line formatting using Matplotlib.
7. Write a Python program which explains uses of customizing seaborn plots with Aesthetic
functions.
a. Join Plot
b. Hexagon distribution.
c. KDE Plot
d. Heat Map
e. Pair Plot
f. Box Plot