Skip to content

Instantly share code, notes, and snippets.

@fatosmorina
Created April 18, 2021 16:03
Show Gist options
  • Save fatosmorina/a58a8a47d8da0403e4139d145bfcd05d to your computer and use it in GitHub Desktop.
Save fatosmorina/a58a8a47d8da0403e4139d145bfcd05d to your computer and use it in GitHub Desktop.
my_list = [1, 2, 3, 4]
print(my_list[-1]) # 4
print(my_list[-2]) # 3
print(my_list[-3]) # 2
print(my_list[-4]) # 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment