Quiz
Python Functions Quiz
…and calling functions in Python, on passing arguments and getting values back, and on the mistakes beginners make most often with them. What the quiz covers Defining and calling functions, and why…
Showing 51–57 of 57
Quiz
…and calling functions in Python, on passing arguments and getting values back, and on the mistakes beginners make most often with them. What the quiz covers Defining and calling functions, and why…
Challenge
After every pass over the ground station, the engine team gets a summary of the temperature readings: the lowest, the highest and the average. Nobody reads five hundred numbers; everybody reads the…
Challenge
…but the sign-up order matters too: it decides who gets the first training slots. The same list has to be shown both ways. Make a sorted copy for the report and leave the original alone, then make the…
Challenge
The ground station no longer gets one reading at a time: the feed now delivers a block of lines every second. The flight controllers want them as a report they can scan at a glance, not as raw…
Challenge
…part. Change the print so it shows: 27:46:40 Every part gets two digits, so 3725 seconds would show as 01:02:05 . In an f-string, {minutes:02d} pads a whole number with zeros to two digits. Days too…
Challenge
…don't end the f-string. Readings on the right The board gets a third column: each system's temperature in °C. Numbers read best aligned to the right, so their decimal points line up. Give the states a…
Article Python Fundamentals
…else: print("Abort: insufficient fuel.") If nesting gets deep, consider combining conditions or extracting logic into functions. Chained comparisons Python supports expressions like a < b < c , which…