Results for “python operators”

Showing 11–14 of 14

  1. Challenge

    Validate a command

    …three commands from the console: start, stop and status. Operators type them in every possible way, and sometimes type something it doesn't know at all. Accept the three commands however they are…

    Write the code Easy 2 stages if elif else input
  2. Challenge

    Undo and history

    The cargo console works: operators add and remove crates and check the hold. What it can't do is answer "what happened?" or take back a slip of the finger, and last week a crate was removed by mistake…

    Write the code Hard 2 stages project lists stack append
  3. Challenge

    Skip blanks and comments

    …at the top, blank lines between blocks, notes from the operators, and now and then a reading that arrived cut off. Teach the parser to skip what it can't use and to keep going when a line is damaged…

    Write the code Medium 2 stages for loop continue strip startswith
  4. Challenge

    Survive bad lines

    …, with a letter l, is a typo from the ground station's operator, so it is skipped too. One try, with the reason Unpacking a line with too few fields raises ValueError too. Drop the length check and…

    Write the code Medium 2 stages errors try except ValueError