Challenge
Duration formatter
The flight computer on Python One counts mission time the simplest way there is: seconds since launch. That's perfect for calculations and useless at a glance. Is 100000 seconds one day or three? Turn…
Showing 51–60 of 76
Challenge
The flight computer on Python One counts mission time the simplest way there is: seconds since launch. That's perfect for calculations and useless at a glance. Is 100000 seconds one day or three? Turn…
Quiz
…<= altitude <= 2000 and , or and not , and values that count as False Nested conditions and indentation Common mistakes, such as = instead of == How it works 15 questions: 11 with one correct answer…
Challenge
…to an item's problems when its ID was seen before, keep a count and the mass of the items that pass, and finish with the totals against MAX_LOAD_KG : CG-0042 PASS CG-0043 PASS CG-0044 FAIL: missing…
Challenge
…first, then try the conversion. Flag the limits After the count, check every valid reading against its sensor's range in LIMITS . Collect each one outside it in alerts , as a dict with time , sensor…
Challenge
…1 prints, then the program stops with a longer traceback. Count its File lines into frames , store the error's name in error_type , and fix the bug on the line the lowest File line names, so it…
Challenge
…readings. Add wanted = "ENG-2" under the feed, keep the count line, and instead of printing every record, print only the records of the wanted sensor. If there are none, say so: Records: 4 ENG-2 at…
Challenge
…can only be repeated a whole number of times, so turn the count into an int .
Challenge
…Python to print. Investigate and modify Investigate. Count how many digits Python prints after the decimal point for total and store the number in digits_after_point . Modify. Keep the raw value, and…
Challenge
…two decimal places. Investigate and modify Investigate. Count how many times 9.81 appears in the two prints and store the number in times_981 . Every copy is a place someone would have to change if…
Challenge
…the braces gives 30 equals signs, so you don't have to count them. Details inside An alert has to say where the problem is and what to do. Add two lines inside the banner, still in the same f-string…