Results for “print”

Showing 11–20 of 237

  1. 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.

    Write the code Easy 2 stages print output strings beginner
  2. Challenge

    Path in a config

    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.

    Fix the code Easy 2 stages raw strings escape sequences paths print
  3. Challenge

    Wrong line commented out

    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…

    Fix the code Easy 2 stages comments debugging print
  4. Challenge

    Log line format

    …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…

    Write the code Easy 2 stages f-strings print logs formatting
  5. Challenge

    Broken boot script

    …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…

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

    Missing index

    …out the valid indexes with len(), fix it with [-1], then print the first, middle and last readings for any length.

    Fix the code Easy 3 stages lists indexing IndexError len
  7. Challenge

    Validate a command

    …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.

    Write the code Easy 2 stages if elif else input