Skip to content

Instantly share code, notes, and snippets.

@leangaurav
Created May 16, 2019 15:48
Show Gist options
  • Save leangaurav/b0028181a624b6ecf19f78a41d97b788 to your computer and use it in GitHub Desktop.
Save leangaurav/b0028181a624b6ecf19f78a41d97b788 to your computer and use it in GitHub Desktop.
A = [ 1 ,2 ,3 ,4 ]
for i in range( len(A) ): # uses indexes
  print(A[i])

Output
1
2
3
4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment