DECS-3RD-LIST OF EXPERIMENT OF PYTHON PROGRAMMING LAB 5 To All
DECS-3RD-LIST OF EXPERIMENT OF PYTHON PROGRAMMING LAB 5 To All
1. Create a tuple and find the minimum and maximum number from it.
2. Write a Python program to find the repeated items of a tuple.
3. Print the number in words for Example: 1234 => One Two Three Four
1. Write a Python program to create a set, add member(s) in a set and remove one item from set.
2. Write a Python program to perform following operations on set: intersection of sets, union of sets, set
difference, symmetric difference, clear a set.
3. Write a Python program to find maximum and the minimum value in a set.
4. Write a Python program to find the length of a set.
1. Write a Python program that counts the number of characters in a string entered by the user.
2. Create a program that checks if a given string is a palindrome.
3. Develop a program that converts a given string to uppercase.
4. Write a Python script that finds and replaces a specific substring within a string entered by the user.
5. Create a program that counts the occurrences of each character in a string and prints the results
3. Write a Python program to combine two dictionary adding values for common keys.
a. d1={'a':100,'b':200,'c':300}
b. d2={'a':300,'b':200,'d':400}
Write Python program to demonstrate math built-in functions and String built-in functions.
1. Write a Python function that accepts a string and calculate the number of upper-case letters and
lower-case letters.
2. Write a Python program to generate a random float where the value is between 5 and 50 using
Python math module.