Results for “print”

Showing 61–70 of 237

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. Challenge

    input() returns text

    …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 input int TypeError type conversion
  9. Challenge

    Unit mix-up

    …and the total doesn't look right. Predict what the code prints, find the leg that doesn't fit, fix the sum, then convert a lander's sensor readings yourself. Predict and run Don't run the code yet…

    Fix the code Easy 3 stages units conversion constants debugging
  10. Challenge

    Wrong average

    …single sensor reads around 21 °C. Predict what the code prints, find out where the maths goes wrong, fix it, then work out an average that has a trap of its own. Predict and run Don't run the code…

    Fix the code Easy 3 stages order of operations brackets average debugging