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

Two possible paths

Try as many times as you need

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")
YOUR MISSION

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
  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.