Skip to content

Instantly share code, notes, and snippets.

@SushmaBaliza
Last active June 3, 2020 13:26
Show Gist options
  • Save SushmaBaliza/45150ef6a15c7417fba6310167619b7f to your computer and use it in GitHub Desktop.
Save SushmaBaliza/45150ef6a15c7417fba6310167619b7f to your computer and use it in GitHub Desktop.
list_1 = ['c', 'o', 'd', 'e', 'r', 'e', 'f', 'e', 'r']
# Index value as integer
print(list_1[2])
print(list_1[0])
print(list_1[4])
# Index value as float
print(list_1[2.0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment