Results for “print”

Showing 61–70 of 150

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

    Float surprise

    …should be the easiest calculation on board, and yet Python prints something nobody expects. Predict it, look closely at what came out, then make the display show what a pilot needs to see. Predict and…

    Write the code Easy 3 stages float floating point rounding formatting
  5. Challenge

    Magic numbers

    …one means finding every copy. Predict what the report prints, find out where the magic numbers hide, then give them names. Refactoring means improving code without changing what it does, so the output…

    Fix the code Easy 3 stages constants refactoring variables clean code
  6. Challenge

    Readings that won't add

    …The code that adds them up looks right, but the total it prints makes no sense. Predict what it prints, find out why, fix it, then handle readings with decimals yourself. Predict and run Don't run the…

    Fix the code Easy 3 stages type conversion int float str
  7. Challenge

    Status message crash

    …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 TypeError str type conversion debugging
  8. Challenge

    What arrived?

    …Don't run the code yet. Read it and decide what it will print on its first line. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage…

    Write the code Easy 3 stages type() data types type conversion sensor data
  9. Challenge

    Legacy script

    …everybody still runs and nobody dares to touch. This one prints the daily engine report. It repeats the same twelve lines for each engine, the variables are called t , m and s , and a fourth engine is…

    Fix the code Hard 2 stages project refactoring functions testing
  10. Challenge

    Launch counter crash

    …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 Medium 3 stages functions scope UnboundLocalError global