Results for “print”

Showing 121–130 of 150

  1. Challenge

    Airlock permissions

    …the crew member holds every permission in needed . If not, print what is missing, sorted: Kowalska can't depressurise the airlock: missing eva_certified needed <= granted is True when every item of…

    Write the code Medium 2 stages sets subset difference permissions
  2. Challenge

    Mass by category

    …the mass of each category in a dict called totals , then print each category with its total, in the order the categories first appear: life support: 49.8 kg spares: 2.4 kg food: 67.0 kg crew: 3.4 kg…

    Write the code Medium 2 stages dictionaries grouping get sorted
  3. Challenge

    Filter the log

    …with only the WARN and ERROR entries, in log order. Then print how many there are, and each one: Alerts: 4 [T+00:12:05] WARN Battery 3 temperature high [T+00:14:47] ERROR Fuel valve 2 not responding…

    Write the code Medium 2 stages for loop lists append filtering
  4. Challenge

    Upload router

    …By extension Choose the folder by the file's extension and print where it goes: .png or .jpg images .csv telemetry anything else rejected For the camera image in the starter code: cam-1_2026-03-14.png…

    Write the code Easy 2 stages if elif else or
  5. Challenge

    Accept the right files

    …work for paths typed on a Windows PC. Check the ends Print whether the path starts with telemetry/ and whether it ends with .csv : In telemetry/: True CSV file: True path.startswith("telemetry/") and…

    Write the code Easy 2 stages strings startswith endswith paths
  6. Challenge

    Date and time from a timestamp

    …the date and the time of day out of the timestamp and print them: Date: 2026-03-14 Time: 09:30:05 The date is the first 10 characters. The time starts after the T , at index 11, and is 8 characters…

    Write the code Easy 2 stages strings slicing indexing timestamp
  7. Challenge

    Search the log

    …the error message that follows. Is it there, and where? Print whether the line contains ERROR , and the index where it starts: Contains ERROR: True Starts at: 13 "ERROR" in line gives True or False…

    Write the code Medium 2 stages strings in find slicing
  8. Challenge

    Fuel for a burn

    …every second. Read the burn length with input() and print the fuel it uses, with one decimal place. For 42 : Fuel used: 315.0 kg input() always gives text, so turn it into a number with float()…

    Write the code Easy 2 stages input float type conversion multiplication
  9. Challenge

    Signal delay

    …out how long a radio signal takes to reach the orbiter and print it with one decimal place: One-way delay: 750.5 s Time is distance divided by speed. The speed of light is already in the code as a…

    Write the code Medium 3 stages division round // %
  10. Challenge

    Test the pipeline

    …and a row from an unknown sensor raises ValueError . Then print: All checks passed Leave the functions as they are. The hidden tests plant two bugs in parse_row() : one keeps the value as text, the…

    Write the code Hard 2 stages project testing assert try