Results for “write”

Showing 51–60 of 79

  1. Challenge

    Config loader

    …the module started with the wrong settings without a word. Write the loader that fills in what is missing, checks what is there, and lists every problem before anything starts. Defaults first Load…

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

    Daily mission report

    …an empty line, the saved line, and the file as it was written: Saved report.csv: subsystem,status,alerts,uptime_pct POWER,OK,3,99.8 GNC,WARN,2,97.25 PROP,OK,0,100.0 COMMS,DEGRADED,2,94.6…

    Write the code Medium 2 stages project formatting f-strings alignment
  3. Challenge

    Landing site

    …it, then print it the way maps and mission documents write coordinates. Unpack the pair Unpack the tuple into two variables, lat and lon , in one line, then print both with four decimal places…

    Write the code Easy 2 stages tuples unpacking formatting coordinates
  4. Challenge

    Date and time from a timestamp

    …of day out of it, then show them the way the ground team writes dates. Date and time Slice 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…

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

    Legacy script

    Every mission has one: the script written the night before launch that everybody still runs and nobody dares to touch. This one prints the daily engine report. It repeats the same twelve lines for…

    Fix the code Hard 2 stages project refactoring functions testing
  6. Challenge

    Log formatter function

    …then the format has been copied into every program that writes to the log, and each copy has drifted a little. Put the format in one function that returns the line, then see what happens when the…

    Fix the code Easy 2 stages functions def return refactoring
  7. Challenge

    Sort by a field

    …Kestrel-7 2026-12-01 Tern-5 2027-01-18 Polaris Cargo 4 Write launch_date(launch) , which returns launch["date"] , and pass it to sorted(launches, key=launch_date) , without brackets after its name…

    Write the code Easy 2 stages functions sorted key reverse
  8. Challenge

    Ground station pick

    …longitude, then make the scheduler cope with longitudes written the other common way. Three bands Each station covers a band of longitudes. Pick the one the spacecraft is over and print it: from 60 to…

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

    Log line format

    Every system on Python One writes to the mission log, one line per event. Engineers search those logs, tools filter them by level, and alarms go off when an ERROR line appears. That only works if…

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