Command Palette

Search for a command to run...

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

Read the traceback and fix the crash

This program should print Name: Asha, Age next year: 13 and Goodbye, but it crashes part-way.

Run it. Find the line number and the error type in the traceback, then fix that line so the program finishes. Keep the variable age as the number 12.

What Check tests

  1. The program runs without an error
  2. age is still the number 12
  3. It prints Age next year: 13
  4. It reaches the last line and prints Goodbye

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.