You are on page 1of 2

Python Programming – Assignment No.

IV
Based on Tuples & Sets CO4

1. Write a Python program to create a tuple with different data types.

2. Write a Python program to add an item in a tuple.

3. Write a Python program to convert a tuple to a string.

4. Write a Python program to find the repeated items of a tuple.

5. Write a Python program to check whether an element exists within a tuple.

6. Write a Python program to convert a list to a tuple.

7. Write a Python program to remove an item from a tuple.

8. Write a Python program to slice a tuple

9. Write a Python program to find the index of an item of a tuple.

10. Write a Python program to find the length of a tuple.

11. Write a Python program to convert a tuple to a dictionary.

12. Write a Python program to unzip a list of tuples into individual lists.

13. Write a Python program to reverse a tuple.

14. Write a Python program to create a set.

15. Write a Python program to add member(s) in a set.

16. Write a Python program to remove item(s) from set

17. Write a Python program to create an intersection of sets.

18. Write a Python program to create a union of sets.

19. Write a Python program to create set difference.

20. Write a Python program to create a symmetric difference.


21. Write a Python program to check if a set is a subset of another set.

22. Write a Python program to create frozensets.


Write a Python program to find maximum and the minimum value in a set.
23. Write a Python program to check if a given set is superset of itself and superset of
another given set.
24. Write a Python program to remove the intersection of a 2nd set from the 1st set.

Last Date of Submission- 17/03/2021

You might also like