The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #578
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)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) November 24, 2020
print(~100)
101
0
100
-100
-101#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅