for i in range(1, 8): print(i) if i==3: break else: print('The for loop is over')
Output: 1 2 3 Question:but after breaking the for loop why the else command could not work? _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor