Skip to content

Instantly share code, notes, and snippets.

@shifatul-i
Created October 3, 2019 19:26
Show Gist options
  • Save shifatul-i/43259287dc5357abe6fb5b49cd81aef7 to your computer and use it in GitHub Desktop.
Save shifatul-i/43259287dc5357abe6fb5b49cd81aef7 to your computer and use it in GitHub Desktop.
mylist = []
mylist.append(1)
mylist.append(2)
mylist.append(3)
print(mylist[0]) # prints 1
print(mylist[1]) # prints 2
print(mylist[2]) # prints 3
# prints out 1,2,3
for x in mylist:
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment