Challenge
Retry the uplink
…each attempt, stop at the first "ok" , then say how it ended: Attempt 1: timeout Attempt 2: no carrier Attempt 3: ok Uplink sent on attempt 3 When all three fail, the last line is Uplink failed after…
Showing 51–56 of 56
Challenge
…each attempt, stop at the first "ok" , then say how it ended: Attempt 1: timeout Attempt 2: no carrier Attempt 3: ok Uplink sent on attempt 3 When all three fail, the last line is Uplink failed after…
Challenge
…name.split() splits on any run of spaces and drops the ends, so " ".join(...) rebuilds it neatly; title() capitalises each word. Reject and deduplicate Build the crew list. Reject a sign-up with no…
Challenge
…an hour every Sunday, and twice this month somebody ended up working a night shift straight after an afternoon. Let the program build the rota, and check its own work. In turn Build rota , a list of…
Challenge
…since launch. Counting days and hours by hand across month ends goes wrong eventually, and the ground stations don't even agree on a time zone. Let the datetime module do the counting. Subtract two…
Challenge
…a message that only mentions the word doesn't count. break ends the loop. How far it looked Show how much of the log the search needed: count the lines it checked and print the total after the loop…
Challenge
…flight log should have a line for each one. The log always ends one orbit early, and the last orbit, the one that matters for the landing, is never in it. Predict the last line, find out where range()…