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…
Showing 21–29 of 29
Challenge
…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…
Challenge
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…
Challenge
…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…
Example
Checking if a set is a subset or superset of another set.
Challenge
…, 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…
Example
Operator ** allows accepting any number of keyword arguments.
Example
Operator * allows accepting any number of positional arguments.
Example
Union, intersection and difference of sets. Mathematical operations from set theory.
Example
Lists store multiple elements in a specific order. Basics of working with lists.