Skip to content

Instantly share code, notes, and snippets.

@RaMSFT
Created October 21, 2022 04:25
Show Gist options
  • Save RaMSFT/5454161cb3edff9f68f2f49b9cda59d5 to your computer and use it in GitHub Desktop.
Save RaMSFT/5454161cb3edff9f68f2f49b9cda59d5 to your computer and use it in GitHub Desktop.
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