Example
Import System Modules
Learning to import modules in Python. Modules extend your program capabilities.
Showing 11–20 of 20
Example
Learning to import modules in Python. Modules extend your program capabilities.
Challenge
A real check is commented out and a debug line is left on. Use # comments to put the pre-flight checklist script back in order. A beginner Python challenge on comments.
Article Python Fundamentals
…from python.org (click 'Downloads' and get the latest version) PyCharm from jetbrains.com/pycharm/download That's it. Don't install anything else yet - it will only confuse you. You can also read our…
Challenge
…sorted(signups, key=str.lower) compares the lower-case version of each name but keeps the names as they are.
Challenge
…Keep the typed text in one variable and the lower-case version in another. Check for empty text first. For Launch , the second line is printed.
Challenge
…function as it is. The hidden tests swap it for the old version with log=[] , and your checks must stop that one. Don't break what worked A fix can go too far. Add checks that a log passed in still…
Challenge
…not change: Docking: GO Whatever the readings are, your version has to print exactly what the nested one would. Say what failed The crew wants to know why docking is on hold. Rewrite the check as one…
Challenge
…the right file. Clean the path first, then check the clean version: In telemetry/: True CSV file: True Remove the spaces, turn backslashes into forward slashes and make it lower case. Inside quotes, a…
Challenge
…ground station goes into the security log, and the first version of the logger wrote the full access code into it. Anyone who could read the log could log in. Mask the code so only its last four…
Challenge
…own capitals: CAM-2_2026-03-14.JPEG -> images/ Keep two versions of the name: one stripped for showing, one stripped and lower-case for checking.