03: Python: Syntax errors

Debug it:

Find and fix common errors in your code
Syntax errors: Find and fix common errors in your code

Debugging means finding and fixing errors (bugs) in your code.

You’ve already had some practice debugging syntax errors on the previous page but this time you won’t be told exactly what to do.

Sorry about the repeated use of nursery rhymes: I’ve got two toddlers.

Hints: Check the brackets, spelling and quotation marks.

Your code won’t run at all until you’ve fixed all of the errors: You need to fix all the lines of code even before the first line will run.

Python is case sensitive: be careful with CAPITAL LETTERS and lowercase letters.

On the next page you’ll get some ideas for how to boost your confidence when debugging.

Leave a Reply