Drop the words into the correct position in the paragraph. Press submit to check your answers.
In Python, text, such as 'John', must be written inside ______. A number, such as 3.14, is written without them. Two numbers are ______ together to give a total, so 45 + 45 gives 90 and not 4545. Text is ______ together instead, so '12' + '13' gives 1213 and not 25. Mixing a number and text, such as 120 + '55', causes an ______ and the program stops.
Whatever the user types into input() is stored as ______. Even typing 50 gives the value '50', not the number 50. So input() never stores a number on its own, and maths with it needs a conversion first.
The ______ function converts text into a whole number, which is called an ______. Use it around the variable every time, or around input() so a whole number is stored straight away. Converting also lets a value from input() be ______ with numbers, so a score can be checked against 50. It also lets the value be used in ______ such as a times table.
Log in or sign-up to access the word drop
Don't have a login?
You can still revise this topic