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 #842
print(reversed("hello") == "olleh")
The reversed() function returns an iterator, not a string. reversed("hello") is not equal to "olleh" . (programiz.com/python-programming/methods/built-in/reversed)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) February 21, 2021
print(reversed("hello") == "olleh")
True
False
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: