Skip to content

Instantly share code, notes, and snippets.

@pykong
Created November 1, 2017 19:21
Show Gist options
  • Save pykong/be06d65a3de73839e59aedbaa5845ebf to your computer and use it in GitHub Desktop.
Save pykong/be06d65a3de73839e59aedbaa5845ebf to your computer and use it in GitHub Desktop.
Be careful with single item tuples!
l = ['Your Code Here']
t = ('Your Code Here')
for item in l:
print(item)
for item in t:
print(item)
# Output
Your Code Here
Y
o
u
r
C
o
d
e
H
e
r
e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment