Results for “power”

7 results

  1. Challenge

    Log analyser

    …they raised, numbered from 1: Warnings by subsystem: 1. POWER: 3 2. GNC: 2 3. COMMS: 1 enumerate(warnings.most_common(), start=1) gives the rank and each (subsystem, count) pair; unpack them as rank…

    Write the code Hard 3 stages project logs parsing Counter
  2. Challenge

    Duplicate events

    …EV-1003 Abort system armed EV-1004 Switched to internal power Duplicates dropped: 2 Keep the IDs you have already printed in a set: start with seen = set() , skip an event whose ID is in seen , and…

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

    Numbered checklist

    …pressure 3. Arm the abort system 4. Switch to internal power 5. Get a go from Mission Control enumerate(checklist, start=1) gives pairs of a number and an item. Unpack them in the loop: for number…

    Write the code Easy 2 stages for loop enumerate start lists
  4. Challenge

    Manifest validator

    Write problems(item), which lists everything wrong with one cargo item: missing fields, a mass that isn't a number, is 0 or is over the limit. Print a pass or fail line per item, then catch duplicate…

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

    Waypoint distance

    …root. Distance A to B: 600.0 m ** raises a number to a power: dx ** 2 is dx squared, and ** 0.5 is the square root. Mind the brackets: ** runs before + . A route The rover won't stop at B: the route…

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

    Broken boot script

    …on Python One runs a short boot script every time it powers on. Last night someone edited the script in a hurry, and now the computer won't start: Python refuses to run the file at all. When a single…

    Fix the code Easy 3 stages SyntaxError debugging print quotes