Results for “print”

Showing 51–60 of 150

  1. Challenge

    Silent branch

    …was scrubbed on live television. Predict what the board prints, find out which statuses fall through, fix the function, then write one where no path is left without an answer. Predict and run Don't…

    Fix the code Easy 3 stages functions return None branches
  2. Challenge

    Line to record

    The parser from "Skip blanks and comments" prints each reading and forgets it. The rest of the ground software needs the readings themselves: the alert check, the charts, the daily report. Each one…

    Write the code Easy 2 stages dictionaries lists parsing records
  3. Challenge

    Never-ending wait

    …to get strong enough to 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…

    Fix the code Easy 3 stages while loop infinite loop counter and
  4. Challenge

    Backup that isn't

    …had quietly disappeared from it. Predict what the code prints, find out how the backup reached the live roster, fix it, then plan a real crew change on a copy. Predict and run Don't run the code yet…

    Fix the code Medium 3 stages lists copy references is
  5. Challenge

    sort() returns None

    …that line went in, the roster says None . Predict what it prints, find out where the crew went, fix it, then sort a list of readings yourself. Predict and run Don't run the code yet. Read it and…

    Fix the code Easy 3 stages lists sort None in place
  6. Challenge

    Assignment in a condition

    …Don't run the code yet. Read it and decide what it will print. 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…

    Fix the code Easy 3 stages if else == SyntaxError
  7. Challenge

    Flag from config text

    …and the real burn never happens. Predict what the code prints, find out where the False got lost, fix it, then read settings that people type by hand. Predict and run Don't run the code yet. Read it…

    Fix the code Easy 3 stages bool if else config
  8. Challenge

    Unreachable branch

    …and nobody shut the engine down. Predict what the check prints, find out why the CRITICAL branch never runs, fix it, then write a chain with four levels. Predict and run Don't run the code yet. Read…

    Fix the code Easy 3 stages if elif order of conditions debugging
  9. Challenge

    Off-by-one slice

    …Don't run the code yet. Read it and decide what it will print. 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…

    Fix the code Easy 3 stages strings slicing indexing off-by-one
  10. Challenge

    Strings don't change

    …Don't run the code yet. Read it and decide what it will print. 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…

    Fix the code Easy 3 stages strings immutability slicing TypeError