Мой профиль
ACTIVITY 13 / 50

Comparisons

Try as many times as you need

Let’s understand

A comparison produces True or False. == checks equality, != inequality, and > and < compare sizes. A single = assigns a value; it does not compare.

Listen to the explanation

Example

print(2 == 3)
YOUR MISSION

Print the result of comparing whether 8 is greater than 5.

I need a hint

You can put a comparison directly inside print.

How to find an error
  1. Read the last line of the error message.
  2. Find the indicated line. Check quotes, parentheses and indentation.
  3. Change one thing and run again.

main.py

4 spaces

Your draft stays in this browser.

Result

Python
Your program’s output will appear here. Click Run.