Results for “print”

Showing 21–30 of 237

  1. Challenge

    Duplicate events

    Print each capsule event once, keeping the first copy, by checking every ID against a set of IDs already seen, then report which IDs came in more than once.

    Write the code Medium 2 stages sets add in deduplication
  2. Challenge

    Debris grid

    …stored as a list of strings with a loop inside a loop, print the row and column of every # with enumerate(), then turn the loops around to find the columns that are clear all the way through.

    Write the code Medium 2 stages nested loops enumerate range strings
  3. Challenge

    Telemetry report

    …line" to read three readings from a multi-line feed, print each as one row, then turn them into a report with a header and aligned columns.

    Write the code Medium 2 stages strings split slicing f-strings
  4. Challenge

    Parse a telemetry line

    …into its four fields with split(), print each with a label, then turn the value into a number and convert it to kelvin.

    Write the code Easy 2 stages strings split parsing csv
  5. Challenge

    Launch schedule digest

    …the launches still to come, sort them by their window and print a digest line for each with the time left and any hold, then switch the digest to the live clock.

    Write the code Medium 3 stages project json datetime timedelta
  6. Challenge

    API response

    Print the name, provider and status of a launch from a dict shaped like a launch-API response, then list every field the response has with items(), the way you'd inspect an API you haven't used…

    Write the code Easy 2 stages dictionaries keys items JSON
  7. Challenge

    Crew roster

    Print the commander, the newest member and the crew size from a list with [0], [-1] and len(), then add the second in command and the whole roster joined into one line.

    Write the code Easy 2 stages lists indexing negative index len