1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Python for Data Science

Connected

Exercise

and, or, not (1)

A boolean is either 1 or 0, True or False. With boolean operators such as and, or and not, you can combine these booleans to perform more advanced queries on your data.

In the sample code on the right, two variables are defined: my_kitchen and your_kitchen, representing areas.

Instructions

100 XP

Write Python expressions, wrapped in a print() function, to check whether: - my_kitchen is bigger than 10 and smaller than 18. - my_kitchen is smaller than 14 or bigger than 17. - double the area of my_kitchen is smaller than triple the area of your_kitchen.