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 #384
print(0xb+0xE)
The 0x prefix is used to notate hexadecimal numbers. The print() function will convert 0xb+0xE to the corresponding decimal number that is 25 . (stackoverflow.com/questions/32805013/why-20-gets-printed-...)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) November 7, 2020
print(0xb+0xE)
It will throw a SyntaxError error.
11
0
0xb+0xE
25#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅