Program - usage of break


Topic: Program - usage of break

Solution

for i in range(5):
    if i == 1:
        break
else:
    print('in else')
print('after for-loop')



List all Python Programs