Posts

Showing posts with the label loops in python

Else with For Loop in Python

Else is executed only if For loop completes successfully. for i in range(5): print(i) # if i==3: # break else: print("No answer")