- Pyroom
- Tutorials
- Getting started with Pyroom
- Read a Python error and fix it
Read a Python error and fix it
Errors are normal. This tutorial runs a program with a typo and uses the error message to find and fix it.
Intermediate Video coming soon. The steps below show everything the video will cover.
Steps
- This program adds up a list, but one name is misspelled.
- Run it. The console shows a NameError and the line where it happened.
- The message names the unknown variable. Fix the spelling to numbers.
- Run it again. The program now prints the total.
Read the transcript
This program adds up a list, but one name is misspelled.
Run it. The console shows a NameError and the line where it happened.
The message names the unknown variable. Fix the spelling to numbers.
Run it again. The program now prints the total.
More Getting started with Pyroom tutorials
- Write and run your first Python program · Beginner
- Ask the user a question with input() · Beginner
- Open a ready-made example and run it · Beginner