Question #578

What is the output of the code snippet below?
print(~100)

~ is the bitwise not operator. ~a is evaluated as -a1 . Therefore, ~100 is evaluated as -1001 : -101 . (geeksforgeeks.org/python-bitwise-operators)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵