filmov
tv
Python Quiz 48 #learningpython #pythonoperators

Показать описание
In Python,
What will be the value of z after the following code?
n= 12 # 1100 in binary
z = n ^ 5 # Bitwise XOR
print(z)
a) 9
b) 13
c) 17
Bitwise Operators #pythonoperators #learningpython #python
What will be the value of z after the following code?
n= 12 # 1100 in binary
z = n ^ 5 # Bitwise XOR
print(z)
a) 9
b) 13
c) 17
Bitwise Operators #pythonoperators #learningpython #python