Results for “print”

Showing 1–10 of 150

  1. Challenge

    Prints instead of returns

    to_kelvin() prints its result instead of returning it, so the caller gets None. Predict the last line, find out what the function gives back, fix it with return, then write a conversion function that…

    Fix the code Easy 3 stages functions return print None
  2. Challenge

    Logging instead of print

    The tank check is full of prints left over from debugging. Replace them with logging calls at the right levels, so debug records stay hidden until switched on, then give the fuel code its own named…

    Fix the code Medium 2 stages logging debug info warning
  3. Challenge

    CSV row

    Write a telemetry reading as a CSV row with print() and sep, add a header row, then switch to tabs for pasting into a spreadsheet. Real data formats from print().

    Write the code Easy 3 stages print sep csv telemetry
  4. Challenge

    Progress on one line

    Make two prints share one line, like Uploading flight plan... done, by changing how print() ends. A Python challenge on print(end=...) for progress messages.

    Write the code Easy 3 stages print end progress console
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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