Skip to content

Instantly share code, notes, and snippets.

@Linus-Albertus
Last active May 26, 2019 10:59
Show Gist options
  • Save Linus-Albertus/312a3eb129cf503b61e883b530bb74c7 to your computer and use it in GitHub Desktop.
Save Linus-Albertus/312a3eb129cf503b61e883b530bb74c7 to your computer and use it in GitHub Desktop.
[reverse list] Reverse a list #reversed #list #python
original_list = ['foo', 'bar']
reversed_list = list()
for l in reversed(original_list):
reversed_list.append(l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment