Challenge
Mission Control online
Print status lines that a monitoring system reads character by character. A first Python challenge on exact output with print(), right in your browser.
Showing 11–20 of 237
Challenge
Print status lines that a monitoring system reads character by character. A first Python challenge on exact output with print(), right in your browser.
Challenge
A Windows path prints wrong because \n and \t inside it turn into a new line and a tab. Fix it with a raw string, then handle a path that ends with a backslash.
Challenge
The pre-flight checklist script prints each check as it runs, and the launch director reads the result before giving the "go". Yesterday a developer was debugging it and left it in a mess: a real…
Challenge
…in the pattern The starter code gives you three values. Print them as one log line, in exactly this shape: [T+00:12:05] INFO Engines nominal Use an f-string: put f right before the opening quote, and…
Challenge
…line is missing its closing quote. Fix it so the script prints: Booting flight computer... Loading navigation data... Boot complete Missing bracket The next part of the boot script checks the sensors…
Challenge
…the keys with in, fix it with get() and a default, then print a list of launches with defaults for any missing field.
Challenge
…out the valid indexes with len(), fix it with [-1], then print the first, middle and last readings for any length.
Quiz
…Python quiz for beginners: 20 multiple-choice questions on print(), strings, lists, dictionaries, loops and functions, with instant answers.
Example
F-strings are a modern way to format text in Python. Insert variables directly into text.
Challenge
…start, stop and status in any case with an if/elif chain, print Unknown command for anything else, then handle empty input and show what was typed.