Created
October 21, 2022 04:25
-
-
Save RaMSFT/5454161cb3edff9f68f2f49b9cda59d5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def reverse_list(lst): | |
lst.reverse() | |
return lst | |
print(reverse_list([1, 2, 3, 4])) | |
print(reverse_list([9, 9, 2, 3, 4])) | |
print(reverse_list([])) | |
print(reverse_list([8, 9, 16, 17, 1, 2, 3, 4])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment