Results for “difference”

Showing 11–17 of 17

  1. Challenge

    Mission config

    …and whether this is only a dry run. Each setting is a different kind of value, and Python treats each kind differently. This challenge works in three steps. First you predict what some code prints and…

    Write the code Easy 3 stages variables data types int float
  2. Challenge

    Environment check

    …starts with that line, because the same code can behave differently in different versions. Python can tell you itself. Write the first lines of a bug report for the Python One flight software, filled…

    Write the code Easy 3 stages platform sys python version bug report
  3. Challenge

    Seeded simulation

    …that exact count, and any other order of calls gives a different one. Kinds of glitch For each glitch, pick its kind with random.choice(KINDS) , right after the check that found it, count the kinds in…

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

    Extra log fields

    …pressure, on which orbit? Every subsystem wants to attach different details, and nobody wants a format_log() with fifty optional parameters. Let the function take whatever fields the caller has, then…

    Write the code Medium 2 stages functions **kwargs keyword arguments dictionaries
  5. Challenge

    Validate a cargo record

    Cargo records arrive from several warehouses, typed by different people. Before an item goes on the manifest, it has to pass a check, and when it fails, the warehouse needs to know everything that is…

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

    Aligned status board

    …and its state, one per line. Because the names are all different lengths, the states end up scattered across the screen, and a HOLD is easy to miss. Line the states up in a column. Format specs can…

    Write the code Medium 3 stages f-strings alignment tables formatting
  7. Challenge

    Mission Control online

    …Mission control online and Mission Control online are two different lines, and one extra space is enough to raise an alarm. Make the console say exactly what the monitor expects. Status line The…

    Write the code Easy 2 stages print output strings beginner