ACTIVITY 13 / 50
Try as many times as you needComparisons
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)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
- Read the last line of the error message.
- Find the indicated line. Check quotes, parentheses and indentation.
- Change one thing and run again.
main.py
4 spaces
Your draft stays in this browser.
Result
PythonYour program’s output will appear here. Click Run.
Мой профиль