Challenge
JSON-looking payload
Print a JSON-style status message full of double quotes and an apostrophe exactly, then build it with an f-string that needs literal curly braces.
Showing 1–10 of 55
Challenge
Print a JSON-style status message full of double quotes and an apostrophe exactly, then build it with an f-string that needs literal curly braces.
Challenge
The flight computer 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.
Article Python Fundamentals
…for simple messages: print('Ready for launch') Double quotes (") Work the same way as single quotes, but are better when your text has apostrophes: print("Spacecraft's systems are online") Triple…
Quiz
Free quiz on Python's print() function: 15 questions on quotes, escape characters, sep, end, flush and f-string formatting, with instant answers.
Challenge
…only looks like a number, and one value says "False" in quotes. Before the flight computer can calculate anything, it has to know what it actually got. type() tells you. Predict what it shows…
Challenge
…Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think before you run. After you check, you'll see your prediction…
Challenge
…Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think before you run. After you check, you'll see your prediction…
Challenge
…Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think before you run. After you check, you'll see your prediction…
Challenge
…Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think before you run. After you check, you'll see your prediction…
Challenge
…Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to think before you run. After you check, you'll see your prediction…