Results for “counting”

Showing 1–10 of 19

  1. Challenge

    Counter

    Refactor the level counter from "Entries per level": replace the dict and counts.get() with collections.Counter, which starts every key at 0, then list the levels from most to least common with…

    Fix the code Easy 2 stages collections Counter most_common dictionaries
  2. Challenge

    Entries per level

    Count the mission log's entries per level, INFO, WARN and ERROR, in a dict of counters, then count any level at all with get() when DEBUG lines turn up, and print the levels in alphabetical order.

    Write the code Easy 2 stages dictionaries counting get sorted
  3. Article Mini projects

    Base 6 Number System in Python

    …Two hands times three fingers gives six digits for counting. It's the same reason we use base 10 - we have ten fingers. Evolution just dealt the Eridians a different hand. Literally. It's also worth…

  4. Challenge

    Mission elapsed time

    …wants the mission elapsed time: how long since launch. Counting days and hours by hand across month ends goes wrong eventually, and the ground stations don't even agree on a time zone. Let the…

    Write the code Medium 2 stages datetime timedelta ISO 8601 time zones