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.
6 results
Challenge
…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.
Challenge
…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…
Challenge
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…
Challenge
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.
Challenge
…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…
Article Python Fundamentals
…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…