Python - For Loop
Find the error in this code snippet:
for i in range(5)
print(i)
else:
print('Done')for i in range(5)
print(i)
else:
print('Done')for statement must end with a colon (:). Here, it is missing.else can be used with for.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions