Results for “and”

Showing 151–160 of 233

  1. Challenge

    Missing reading

    …driver hands your alert check None instead of a number, and the check from "Alert level" stops with a TypeError in the middle of a pass. Extend your check so a missing reading is reported, not crashed…

    Write the code Medium 2 stages if else None is None
  2. Challenge

    Signal delay

    …radio delay to a Mars orbiter, show it in whole minutes and seconds, then add the round trip without doubling a rounding error.

    Write the code Medium 3 stages division round // %
  3. Challenge

    CSV row

    Write a telemetry reading as a CSV row with print() and sep, add a header row, then switch to tabs for pasting into a spreadsheet. Real data formats from print().

    Write the code Easy 3 stages print sep csv telemetry
  4. Challenge

    Path in a config

    A Windows path prints wrong because \n and \t inside it turn into a new line and a tab. Fix it with a raw string, then handle a path that ends with a backslash.

    Fix the code Easy 2 stages raw strings escape sequences paths print
  5. Challenge

    Broken boot script

    The flight computer won't boot: a quote and a bracket are missing. Read the SyntaxError, find the broken line and fix it. A beginner Python debugging challenge.

    Fix the code Easy 3 stages SyntaxError debugging print quotes
  6. 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
  7. Article Python Fundamentals

    Python Functions for Beginners

    …from your first def to return values, default parameters and scope, with runnable examples, common mistakes and six practice projects.