loading...

re: 30 Days of Python 👨‍💻 - Day 5 - Conditions & Loops I VIEW POST

FULL DISCUSSION
 

My friend your are missing some ':' in the loops
reggards!

for item in {1,2,3,4,5}: # Set is iterable
print(item)

for item in (1,2,3,4,5): # Tuple is iterable
print(item)

 

Thank you so much :) I have rectified the statements now.

code of conduct - report abuse