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

You’re reading for free. Sign in to keep your progress and earn a certificate when you finish.Sign in to keep my progress →

Lesson 22 of 76