Results for “python version”

Showing 11–20 of 20

  1. Challenge

    Wrong line commented out

    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.

    Fix the code Easy 2 stages comments debugging print
  2. Article Python Fundamentals

    A Practical Guide to Getting Started with Programming

    …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…

  3. Challenge

    Sorted copy

    …sorted(signups, key=str.lower) compares the lower-case version of each name but keeps the names as they are.

    Write the code Easy 2 stages lists sorted sort key
  4. Challenge

    Validate a command

    …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.

    Write the code Easy 2 stages if elif else input
  5. Challenge

    Prove the fix

    …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…

    Write the code Medium 2 stages testing assert regression tests default values
  6. Challenge

    Flatten nested ifs

    …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…

    Fix the code Medium 2 stages if elif and nested conditions
  7. Challenge

    Accept the right files

    …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…

    Write the code Easy 2 stages strings startswith endswith paths
  8. Challenge

    Redact the access code

    …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…

    Write the code Medium 2 stages strings slicing len replace
  9. Challenge

    Upload router

    …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.

    Write the code Easy 2 stages if elif else or