Results for “difference”

Showing 1–10 of 17

  1. Challenge

    Manifest diff

    Compare yesterday's and today's cargo IDs with set difference to print what was added and what was removed, then count what stayed with an intersection and print none for an empty change.

    Write the code Easy 2 stages sets difference intersection sorted
  2. Challenge

    Round or cut?

    …off, round() rounds, and round(2.5) gives 2. Predict the difference, investigate Python's rounding rule, then round a fuel reading two ways.

    Write the code Medium 3 stages int round rounding type conversion
  3. Challenge

    Unit mix-up

    …Investigate. Find the variable that holds a distance in a different unit and store its name, as text, in odd_one_out . Then convert it: one mile is 1.609344 km. Store leg 2 in km, as a number, in…

    Fix the code Easy 3 stages units conversion constants debugging
  4. Challenge

    Config loader

    …copy and update() fills it in. json.dumps(value) shows the difference between "256" and 256 . Every problem at once Check every saved setting, in the order it was saved, and collect a message for each…

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

    Read the error

    …of log Run, read, fix, repeat Day 3 has two mistakes, on different lines. Python reports only the first one it finds, so after you fix it and run again, a different error appears, on a different line…

    Fix the code Easy 3 stages SyntaxError IndentationError error messages debugging
  6. Challenge

    Waypoint distance

    …between two points comes from Pythagoras: square the differences in x and in y, add them, and take the square root. Distance A to B: 600.0 m ** raises a number to a power: dx ** 2 is dx squared, and…

    Write the code Easy 2 stages exponent square root ** Pythagoras
  7. Challenge

    Mass by category

    …weighs, because food, life support and spares go into different racks with different mass limits. Total the manifest by category, then rank the categories by mass. A total per category Add up the mass…

    Write the code Medium 2 stages dictionaries grouping get sorted