Skip to content

Commit eefa7ca

Browse files
author
Pc
committed
updated
1 parent 784ff48 commit eefa7ca

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Solutions/Excercise6.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
def main():
2+
x=4
3+
y=2
4+
print("Bitwise AND X&Y=", )
5+
print("Bitwise OR X|Y=", )
6+
print("Bitwise XOR X^Y=", )
7+
print("Bitwise Complement ~X=", )
8+
print("Bitwise Left Shift X<<Y=", )
9+
print("Bitwise Right Shift X>>Y=", )
10+
11+
if __name__ == '__main__':
12+
main()

0 commit comments

Comments
 (0)