0% found this document useful (0 votes)
23 views

Assignment Set

The document outlines 18 Python programming assignments related to sets, including creating sets, iterating over sets, adding and removing set elements, performing set operations like intersection and union, checking for subsets and supersets, and finding lengths, maximums, minimums, and differences between sets.

Uploaded by

hemanshu patil
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Assignment Set

The document outlines 18 Python programming assignments related to sets, including creating sets, iterating over sets, adding and removing set elements, performing set operations like intersection and union, checking for subsets and supersets, and finding lengths, maximums, minimums, and differences between sets.

Uploaded by

hemanshu patil
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment Set

1. Write a Python program to create a set.

2. Write a Python program to iteration over sets.

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

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

5. Write a Python program to remove an item from a set if it is


present in the
set.

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

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

8. Write a Python program to create set difference.

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

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


set.
11. Write a Python program to remove all elements from a given set.

12. Write a Python program to find maximum and the minimum


value in a set.

13. Write a Python program to find the length of a set.

14. Write a Python program to check if a given value is present in a


set or not.

15. Write a Python program to check if two given sets have no


elements in common.

16. Write a Python program to check if a given set is superset of itself


and superset of another given set.

17. Write a Python program to find the elements in a given set that
are not in another set.
18. Write a Python program to remove the intersection of a 2nd set
from the 1st set.

You might also like