Get startedGet started for free

Warmup

To experiment with if and else a bit, have a look at this code sample:

area = 10.0
if(area < 9) :
    print("small")
elif(area < 12) :
    print("medium")
else :
    print("large")

What will the output be if you run this piece of code in the IPython Shell?

This exercise is part of the course

Intermediate Python for Data Science

View Course

Exercise instructions

small,medium,large,The syntax is incorrect; this code will produce an error.

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise