ACTIVITY 15 / 50
Try as many times as you needTwo possible paths
Let’s understand
else provides a second path, used when the if condition is false. Align if and else and indent their blocks. Only one of these two branches runs each time.
Listen to the explanation
Example
if 4 > 3:
print("YES")
else:
print("NO")Read the charge. Print GO for 20 or more, otherwise CHARGE.
I need a hint
“20 or more” is written >= 20.
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.
Мой профиль