Results for “print”

Showing 111–120 of 150

  1. Challenge

    Downlink time

    …the link speed in Mbit/s, both as decimal numbers, and print the transfer time in minutes with one decimal place. For a 450 MB file at 2 Mbit/s: Downlink time: 30.0 min Forget the 8 and the answer…

    Write the code Medium 3 stages input float bits and bytes round
  2. Challenge

    Duration formatter

    …the minutes left over and the seconds left over, and print: 27 h 46 min 40 s // divides and keeps only the whole part; % gives what's left over. An hour has 3600 seconds and a minute 60. Clock format…

    Write the code Easy 3 stages floor division modulo // %
  3. Challenge

    Flight software review

    …455.0 outside 0.0-450.0 Look at the decision line it prints after that. If it seems wrong to you, you are right: that is the fifth bug, for stage 2. This stage checks the lines above. Make it right…

    Fix the code Hard 2 stages project debugging SyntaxError TypeError
  4. Challenge

    Validate a cargo record

    …mass for a mass below 0. The loop at the bottom then prints: CG-0042: OK CG-0043: missing item, negative mass CG-0044: missing mass_kg CG-42: OK Start with problems = [] , append each problem you…

    Write the code Medium 2 stages functions return lists validation
  5. Challenge

    Sign-up cleanup

    …, which trims the email and makes it lower case. Print every sign-up, cleaned: Anna Kowalska <anna.kowalska@example.org> Kenji Tanaka <k.tanaka@example.org> Chioma Okafor <chioma.okafor@example.org>…

    Write the code Medium 2 stages project strings strip split
  6. Challenge

    Command parser

    …the reason for anything else. Then try every command and print OK and the result, or REJECTED , the command in quotes and the reason: OK ('burn', 12.5) OK ('burn', 3.0) OK ('burn', 0.5) REJECTED…

    Write the code Medium 2 stages project parsing strings split
  7. Challenge

    Seeded simulation

    …readings, count a glitch when random.random() < 0.05 , and print the count: Glitches in 100 readings: 7 Call random.random() exactly once per reading, after the seed: the check expects that exact…

    Write the code Easy 2 stages random random.seed random.choice simulation
  8. Challenge

    Telemetry from CSV

    …with newline="" , loop over csv.DictReader(csv_file) , and print each row in the same format as before: 09:30:05 ENG-2: 412.5 C 09:30:05 TANK-1: 78.3 % 09:30:10 CABIN: 101.2 kPa 09:30:10 ENG-2: 415.0…

    Write the code Medium 2 stages csv csv.DictReader files open
  9. Challenge

    Any number of values

    …loose values, then with the readings list unpacked, and print: Three spot checks: 401.0 The whole pass: 419.5 Inside the function, values is a tuple, so sum() and len() work on it. In the second call…

    Write the code Easy 2 stages functions *args unpacking keyword-only arguments
  10. Challenge

    Sort by a field

    …the racks. Sort both lists by one of their fields. By date Print the launches from the earliest date to the latest: 2026-11-05 Lumen-3 2026-11-21 Kestrel-7 2026-12-01 Tern-5 2027-01-18 Polaris Cargo 4…

    Write the code Easy 2 stages functions sorted key reverse