Skip to content

Instantly share code, notes, and snippets.

@gabicavalcante
Created June 5, 2015 14:58
Show Gist options
  • Save gabicavalcante/fb276808717374122744 to your computer and use it in GitHub Desktop.
Save gabicavalcante/fb276808717374122744 to your computer and use it in GitHub Desktop.
for elemento in [1, 2, 3]:
print elemento
for elemento in (1, 2, 3):
print elemento
for chave in {'one':1, 'two':2}:
print chave
for car in "123":
print car
for linha in open("myfile.txt"):
print linha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment