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…
Showing 61–70 of 150
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…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…
Challenge
…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…