Home > Enterprise >  How do I order lines to be correct?
How do I order lines to be correct?

Time:03-11

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

CodePudding user response:

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, '!')
  • Related