Last active
December 12, 2023 03:33
-
-
Save brootware/6570212e73688aff89f3597c4a5505d4 to your computer and use it in GitHub Desktop.
Cheat Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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