Challenge
Missing field
…given a pad yet. Instead of a board with one blank, the operators got an error and no board at all. Predict what happens, find out what the dict really holds, fix it, then build a board that copes…
Showing 21–29 of 29
Challenge
…given a pad yet. Instead of a board with one blank, the operators got an error and no board at all. Predict what happens, find out what the dict really holds, fix it, then build a board that copes…
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…
Quiz
…intersection, difference and symmetric difference, with operators and with methods Comparing sets and checking subsets What can go in a set, frozenset , set comprehensions and sorting the items of a…
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…
Article Python Fundamentals
…conditions: Comparisons: == , != , < , > , <= , >= Logical operators: and , or , not Membership: in , not in Truthiness: values like 0 , "" , [] , None , False are treated as False in conditions…
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.
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…
Quiz
…data types and type conversion Arithmetic: // , % , ** and operator precedence Strings: indexing, slicing and string methods Conditions: if , elif , else and truthy values Lists, tuples, dictionaries…