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 #841
oct(7)
oct("7")
The function oct() is used to convert its argument into octal form. This function does not accept strings. The second function results in an error while the output of the first function is 0o7 . (programiz.com/python-programming/methods/built-in/oct)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) September 5, 2021
oct(7)
oct("7")
07
0o7
Syntax Error
07
0o7
SyntaxError
None of the above
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅