Challenge
Assignment in a condition
An oxygen check uses = instead of == and has a line that isn't indented, so Python refuses to run it. Predict what happens, fix both errors one after the other, then write an if/else check yourself.
Showing 21–30 of 44
Challenge
An oxygen check uses = instead of == and has a line that isn't indented, so Python refuses to run it. Predict what happens, fix both errors one after the other, then write an if/else check yourself.
Challenge
…as local, fix it by passing the count in and returning the new one, then write a fuel function the same way.
Challenge
…sample already in it, and by the end of the week every new log held every sample ever taken. Predict what the program prints, find out where the old samples come from, fix the default, then write a…
Challenge
…yet. Read it and decide what it will print on its first line. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to…
Challenge
…"Telemetry from CSV", the error handling from "Survive bad lines", the limits from the alert checks and the JSON from "JSON out". The ground station's export arrives every few seconds. Your program…
Challenge
The feed parser from "Parse the whole feed" still reads two lines somebody pasted into the program. The ground station now delivers a proper export, telemetry.csv , with a header row, and it changes…
Challenge
…what differs, call it three different ways, then add a new priority parameter without breaking any existing call.
Article Python Fundamentals
…to know about learning Python, from writing your first line of code to building real projects. No experience needed!
Article Mini projects
…but you might need to install it separately) Create a new Python file called cosmic_health_tracker.py . This will be our mission control center! 2. Designing Our Astronaut Database Every good space…
Quiz
…\\ Printing several values and mixing text with numbers Line breaks, the sep and end parameters and flush=True f-string formatting: decimal places, thousands separators and {name=} for debugging How…