Program - if else for


Topic: Program - if else for

Solution

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



List all Python Programs