1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Intermediate Python

Connected

Bài tập

Add else

In the script, the if construct for room has been extended with an else statement so that "looking around elsewhere." is printed if the condition room == "kit" evaluates to False.

Can you do a similar thing to add more functionality to the if construct for area?

Hướng dẫn

100 XP

Add an else statement to the second control structure so that "pretty small." is printed out if area > 15 evaluates to False.