Skip to content
Advertisement

How do I order lines to be correct?

question is to arrange lines in order and with correct indent. I can’t write anything just need to arrange it. question is in the picture. what’s wrong with my answercapture

Advertisement

Answer

Try this:

for i in range(1,6):
    if i == 1:
        print(i, 'little bear')
    else:
        print(i, 'little bears')
    print('Wondering what to do')
    print('Along came another')
    print('Then there were', i+1, '!')
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement