Created
September 13, 2025 16:38
-
-
Save amlanpatnaik001/257a3854e8e9eaaf5e837489b3cbdf08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} | |
set2 = {1, 2, 3, 4, 6} | |
''' | |
print(set1 & set2) | |
print(set2.issubset(set1)) | |
print(set1.union(set2)) | |
print(set1.issuperset(set2)) | |
print(set2.issuperset(set1)) | |
print(set1.intersection(set2)) | |
''' | |
print(set1 | set2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment