Cities

Report a typo

The code below is supposed to classify cities into 4 categories (million — large — medium — small) based on their population.

Put the lines of code in the correct order. Make indents when needed.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                print("This is a small city")
              
                elif population > 100000:
              
                print("This is a medium city")
              
                print("This is a large city")
              
                else:
              
                if population > 1000000:
              
                elif population > 350000:
              
                print("This is a million city")
              
___

Create a free account to access the full topic