diff --git a/sets.py b/sets.py index b4cc0ce..7375fb6 100644 --- a/sets.py +++ b/sets.py @@ -2,4 +2,25 @@ set1.pop() print(set1.pop()) print(set1) -print(len(set1)) \ No newline at end of file +print(len(set1)) + + +a = 5 +b = 4 + +print(a&b) +print(a | b) +print(a^b) +print(~a) +print(~b) +print(a<<2) +print(a>>2) +print("") +print("") + +print(26&23) +print(17|24) +print(17^24) +print(~45) +print(68<<2) +print(56>>3)