Posts

Showing posts with the label for loop

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")