INDEX
Sr Program Signature
No.
Write a Python program to accept three sides of a triangle as the input
1. and print whether the triangle is valid or not.
2. Write a Python program to find the largest among three numbers.
3. Write a program to check if the given number is a palindrome number.
4. Write a program to count the number of alphabets and number of
digits in a string.
Write a program to accept a string from the user, delete all vowels from
5. the string and display the result.
6. Given a string, write a Python program to find the largest substring of
uppercase characters and print the length of that substring.
7. Write a Python function that takes a string as input and returns a
new string where the first letter of each word is capitalized.
8. Write a program to create following 3 lists:
• A list of names.
• A list of employee's ids.
• A list of salaries.
From these lists, generate 3 tuples - one containing all names,
another containing all ids and third containing all salaries. Also,
from the three created lists, generate and print a list of tuples
containing name, ids and salaries.
9. Write a Python program to check whether an element exists within
a tuple.
10. Create a dictionary of 10 usernames and passwords. Receive the
username and password from keyboard and search for them in the
dictionary. Print appropriate message on the screen based on
whether a match is found or not.
11. Create a lambda function 'greater', which takes two arguments x
and y and return x if x > y otherwise y.
12. Write a Python program to demonstrate the use of lambda
functions with map, filter, and reduce.
13. Write a Python program to handle a Zero Division Error exception
when dividing a number by zero.
14. Write a Python program that prompts the user to input an integer
and raises a ValueError exception if the input is not a valid integer.
15. Write a Python program to create a numpy array of given shape
and perform basic mathematical operations.
16. Write a Python program to perform group by and aggregation on a
Pandas dataframe.
17. Create Box plot, Scatter Plot and Histogram with Matplotlib.
18. Create Pair plot, Heatmap and Distribution plot with Seaborn.