Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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, '!')
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading