…stopwatch that starts when the program runs and just keeps counting up, immune to Grace's shenanigans. Important limitation: Monotonic time is only reliable within a single program session. It resets…
…2 By hour: 09:00: 4 10:00: 4 11:00: 5 Two Counter s do the counting; the hour is the first two characters of the time, plus ":00" . The first error Find the first ERROR entry and print its time…
…one Find the first ERROR entry, print its line number, counting from 1, with the entry itself, and stop searching there: First error on line 4: [T+00:14:47] ERROR Fuel valve 2 not responding Loop with…
…a ValueError Numbers kept as text: joining, comparing and counting digits What int() does to a negative float, and which values bool() turns into False Checking input with isdigit() , reading several…
…, pop() and del Looping with keys() , values() and items() Counting with a dictionary, lists inside dictionaries and nested dictionaries How it works 15 questions: 11 with one correct answer, 4 where…
…a stop and a step, including countdowns Adding up and counting inside a loop enumerate() and range(len()) when you need positions Indentation inside the loop, break and a first nested loop How it…
…covers Joining strings with + , repeating them with * and counting characters with len() Indexing and slicing, including negative indexes and reversing a string Case methods such as upper() and…