Results for “SyntaxError”

6 results

  1. Challenge

    Broken boot script

    …won't boot: a quote and a bracket are missing. Read the SyntaxError, find the broken line and fix it. A beginner Python debugging challenge.

    Fix the code Easy 3 stages SyntaxError debugging print quotes
  2. Challenge

    Read the error

    …Python stops before printing a single line and shows a SyntaxError . Find line and a number in the error, go to that line in the editor (the numbers are on the left) and fix it. The rest of the file…

    Fix the code Easy 3 stages SyntaxError IndentationError error messages debugging
  3. Challenge

    Flight software review

    A 40-line pre-burn check has five bugs: a syntax error, a type error, a wrong key, an index out of range and a reversed decision. Read each error to fix the four that crash, then find the one that…

    Fix the code Hard 2 stages project debugging SyntaxError TypeError
  4. Challenge

    Assignment in a condition

    An oxygen check uses = instead of == and has a line that isn't indented, so Python refuses to run it. Predict what happens, fix both errors one after the other, then write an if/else check yourself.

    Fix the code Easy 3 stages if else == SyntaxError
  5. Challenge

    JSON-looking payload

    …Quotes inside quotes Run the script: Python stops with a SyntaxError , because the double quote before status ends the text early. Fix the line so it prints exactly: {"status": "GO", "note": "Don't…

    Fix the code Medium 2 stages quotes escape sequences f-strings json
  6. Article Python Fundamentals

    Python Functions for Beginners

    …weight_on_planet(earth_weight=70, gravity): gives you a SyntaxError saying a parameter without a default follows one with a default. If you think about it, Python would have no way of knowing which…