Command Palette

Search for a command to run...

Hectal
Phase 0: Start Here: Programming and Python from Zero
Python · Exercise 4 of 5 PreviousNext
Beginner

Fix three errors

This program has three mistakes, and Python reports them one at a time. Press Run, read the last line of the error, fix that one mistake, and run again. Repeat until there is no error. The hints below explain each message if you get stuck.

When all three are fixed it prints Checking the weather, It is hot today. and Done.

What Check tests

  1. The program runs without an error
  2. It prints Checking the weather first
  3. It prints It is hot today.
  4. It prints Done last, exactly once

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

main.py
Sign in to run your code.

Output

Press Run to see what your program prints.