Skip to content

Instantly share code, notes, and snippets.

@JoMingyu
Created March 29, 2018 07:01
l = [1, 2, 3, 4]
print(reversed(l))
# <list_reverseiterator object at 0x1042b50b8>
print(list(reversed(l)))
# [4, 3, 2, 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment