Results for “count”

Showing 31–40 of 48

  1. Challenge

    Log to a file

    …new entry with it, then read the file back, print it, and count its lines: [T+00:10:00] INFO Orbit insertion complete [T+00:12:05] WARN Battery 3 temperature high [T+00:14:47] ERROR Fuel valve 2 not…

    Write the code Easy 2 stages files open with write
  2. Challenge

    Duration formatter

    The flight computer on Python One counts mission time the simplest way there is: seconds since launch. That's perfect for calculations and useless at a glance. Is 100000 seconds one day or three? Turn…

    Write the code Easy 3 stages floor division modulo // %
  3. Challenge

    Manifest validator

    …to an item's problems when its ID was seen before, keep a count and the mass of the items that pass, and finish with the totals against MAX_LOAD_KG : CG-0042 PASS CG-0043 PASS CG-0044 FAIL: missing…

    Write the code Medium 2 stages project validation dictionaries functions
  4. Challenge

    Telemetry pipeline

    …first, then try the conversion. Flag the limits After the count, check every valid reading against its sensor's range in LIMITS . Collect each one outside it in alerts , as a dict with time , sensor…

    Write the code Hard 3 stages project csv json files
  5. Challenge

    Read the traceback

    …1 prints, then the program stops with a longer traceback. Count its File lines into frames , store the error's name in error_type , and fix the bug on the line the lowest File line names, so it…

    Fix the code Easy 2 stages errors traceback KeyError TypeError
  6. Challenge

    Line to record

    …readings. Add wanted = "ENG-2" under the feed, keep the count line, and instead of printing every record, print only the records of the wanted sensor. If there are none, say so: Records: 4 ENG-2 at…

    Write the code Easy 2 stages dictionaries lists parsing records
  7. Challenge

    Float surprise

    …Python to print. Investigate and modify Investigate. Count how many digits Python prints after the decimal point for total and store the number in digits_after_point . Modify. Keep the raw value, and…

    Write the code Easy 3 stages float floating point rounding formatting
  8. Challenge

    Magic numbers

    …two decimal places. Investigate and modify Investigate. Count how many times 9.81 appears in the two prints and store the number in times_981 . Every copy is a place someone would have to change if…

    Fix the code Easy 3 stages constants refactoring variables clean code
  9. Challenge

    Alert banner

    …the braces gives 30 equals signs, so you don't have to count them. Details inside An alert has to say where the problem is and what to do. Add two lines inside the banner, still in the same f-string…

    Write the code Medium 3 stages f-strings escape sequences new line formatting