Results for “print”

Showing 101–110 of 150

  1. Challenge

    Readings summary

    …survives a pass with no readings at all. Min, max, mean Print the lowest and the highest reading, and the mean with one decimal place: Min: 398.0 Max: 455.2 Mean: 419.5 min() and max() take the whole…

    Write the code Easy 2 stages lists min max sum
  2. Challenge

    Sensor ID parts

    …themselves. Subsystem and number Split the ID at the dash. Print the subsystem, the unit number as an int , and the ID of the next unit: Subsystem: ENG Unit number: 2 Next unit: ENG-3 The pieces from…

    Write the code Medium 2 stages strings split rsplit int
  3. Challenge

    Ground pass planner

    …by datetime.fromisoformat() . Sort them by start time and print: Contact windows over 8 minutes: 06:30:00-06:44:00 Usuda 14.0 min 08:02:10-08:13:40 Kiruna 11.5 min 08:10:00-08:19:30 Svalbard 9.5 min…

    Write the code Medium 2 stages project datetime timedelta sorting
  4. Challenge

    Config loader

    …config as a copy of DEFAULTS , fill in what was saved, and print every setting in name order, with the value written as JSON: downlink_rate_kbps = "256" log_level = "INFO" log_levl = "DEBUG" retries =…

    Write the code Hard 3 stages project json configuration validation
  5. Challenge

    Shift rota

    …shift of the week, in order, taking the crew in turn. Print one line per day, then count how many times one person works two shifts in a row: Mon Morning: Kowalska Afternoon: Tanaka Night: Okafor Tue…

    Write the code Hard 2 stages project scheduling lists tuples
  6. Challenge

    JSON out

    …takes JSON. The summary already exists as a Python dict. Printing it with print(summary) looks close, but single quotes, True and None aren't JSON, and the archive rejects it. Produce real JSON text…

    Write the code Easy 2 stages json json.dumps modules import
  7. Challenge

    Paged results

    …pages Merge the pages into one list called launches , then print how many launches there are, and each one: Launches: 7 Lumen-1: success Kestrel-4: success Aurora Relay: failure Kestrel-5: success…

    Write the code Medium 2 stages for loop while loop extend break
  8. Challenge

    Skip blanks and comments

    …comment line. Skip blank lines and comment lines, so it prints only the readings: 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 C At the top of the…

    Write the code Medium 2 stages for loop continue strip startswith
  9. Challenge

    Ground station pick

    …of longitudes. Pick the one the spacecraft is over and print it: from 60 to 180 New Norcia from -60, below 60 Cebreros below -60 Malargüe For 100.0 it's Ground station: New Norcia . Go through the…

    Write the code Easy 2 stages if elif else ranges
  10. Challenge

    Redact the access code

    …only its last four characters show, the way bank cards are printed on receipts, then do it inside a real log line. Mask the code Replace every character of the access code except the last four with *…

    Write the code Medium 2 stages strings slicing len replace