spock
11/1/2017 - 7:21 PM

List v Tuple Iter

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