Quiz on Python reversed() Function



1. What does the reversed() function do in Python?
2. What type of object does the reversed() function return?
3. Which of the following is a correct syntax to use the reversed() function?
4. Can the reversed() function be applied to a string?
5. What will the output of list(reversed('Hello')) be?

Advertisements