Skip to content

Instantly share code, notes, and snippets.

@brootware
Last active December 12, 2023 03:33
Show Gist options
  • Save brootware/6570212e73688aff89f3597c4a5505d4 to your computer and use it in GitHub Desktop.
Save brootware/6570212e73688aff89f3597c4a5505d4 to your computer and use it in GitHub Desktop.
Cheat Sheet
sample_list = [45, 67, 87, 23, 5, 32, 60]
# Your code below
new_list = []
for i in range(len(sample_list)-1, -1, -1):
new_list.append(sample_list[i])
print(new_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment