Basics · Lesson 22 of 76
Operators
Operators combine values. The arithmetic ones work like maths:
Python
Comparison operators ask a yes/no question and return True or False:
Python
Your turn: print whether 45 minutes is more than half of 90.
Check your understanding
Exercise — check your understanding
Set total to the number of minutes in 3 hours, using multiplication.
You’re reading for free. Sign in to keep your progress and earn a certificate when you finish.Sign in to keep my progress →