Results for “and”

Showing 1–10 of 150

  1. Challenge

    Skip blanks and comments

    Extend the feed parser so continue skips blank lines and comment lines, then report damaged lines with too few fields instead of crashing, with a count of parsed and damaged lines.

    Write the code Medium 2 stages for loop continue strip startswith
  2. Challenge

    Undo and history

    …console: record every change to the hold in a history list and show it with a history command, then add undo, which takes the last change off the history and reverses it.

    Write the code Hard 2 stages project lists stack append
  3. Challenge

    Launch commit criteria

    …only if the wind is under 30 km/h, there is no lightning and range safety reports GO, using and and not, then print every rule that is holding the launch.

    Write the code Easy 2 stages if else and not
  4. Challenge

    Flatten nested ifs

    …built from three nested ifs into one condition joined with and, keeping the output exactly the same, then rewrite it as a flat if/elif chain that reports the first check that failed.

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

    Safe mode

    …or, then name the rule that fired with boolean variables and an if/elif chain.

    Write the code Medium 2 stages if elif or and
  6. Challenge

    Downlink time

    Read a file size in MB and a link speed in Mbit/s with input(), work out the transfer time without forgetting the 8 bits in a byte, show it in minutes and seconds, then count the ground station…

    Write the code Medium 3 stages input float bits and bytes round
  7. Challenge

    Never-ending wait

    …lock on. The waiting code should print a line each second and then report the lock. Instead, the ground station screen fills with the same line, over and over, until someone stops the program. Predict…

    Fix the code Easy 3 stages while loop infinite loop counter and