From fbc923a3b7254171063c09e1c89d1113d1f0eccb Mon Sep 17 00:00:00 2001 From: Daniel Mukenya <88248852+watchout254@users.noreply.github.com> Date: Wed, 27 Sep 2023 13:23:14 +0300 Subject: [PATCH] daily --- sets.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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)