We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 784ff48 commit eefa7caCopy full SHA for eefa7ca
Solutions/Excercise6.py
@@ -0,0 +1,12 @@
1
+def main():
2
+ x=4
3
+ y=2
4
+ print("Bitwise AND X&Y=", x&y )
5
+ print("Bitwise OR X|Y=", x|y )
6
+ print("Bitwise XOR X^Y=", x^y )
7
+ print("Bitwise Complement ~X=", ~x )
8
+ print("Bitwise Left Shift X<<Y=", x<<y )
9
+ print("Bitwise Right Shift X>>Y=", x>>y )
10
+
11
+if __name__ == '__main__':
12
+ main()
operators/Exercise6.py
+ print("Bitwise AND X&Y=", )
+ print("Bitwise OR X|Y=", )
+ print("Bitwise XOR X^Y=", )
+ print("Bitwise Complement ~X=", )
+ print("Bitwise Left Shift X<<Y=", )
+ print("Bitwise Right Shift X>>Y=", )
0 commit comments