Question #578

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

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


Comment on Disqus:

Comment on Twitter:

Question difficulty: πŸ”΅πŸ”΅πŸ”΅πŸ”΅πŸ”΅