11-20 Python Questions

11.Write a Python script to get the maximum and minimum value in a dictionary. 

12.Create a class for a basic student management system that can store and display student information like name, age, and grade. 

13.Write a Python program to remove duplicates from a list. 

14.Write a Python program to find the length of a tuple. Write a Python program to convert a tuple to a string. 

15.Write a Python program to find the Union and Intersection of two sets.

16.Write a code to swap the values of two variables without using a temporary variable. 

17.How do you perform left and right shifts with bitwise shift operators in Python? Explain with example. 

18.Write a program to display the first FIVE multiples of 8 using “if” 

19.Write a Python program that compares two lists to determine if they are the same object in memory using Identity operator. 

20.Write a Python program to get the last element of a list using negative indexing. 

Post a Comment

Post a Comment (0)