Font size
WorksheetsYear 9 lower Python
Total questions: 10
Worksheet time: 9mins
What input will I need to collect the height (in cm) of pupils in a class?
float
Int
input
What does a variable do?
Stores a value in memory
Helps you print to screen
It works out the maths
What does the round function do in Python?
makes circles
Rounds to a decimal place
Tells you how many letters are in a word
Using the round function for the value 46.843 to 2 decimal places, the answer would be?
46.82
46.85
46.87
46.84
What would be the answer here?
x = "hello"
print(len(x))
2
3
4
5
What would the answer be?
x = input("enter a number ")
print(x+x)
33
31
error
What would be the answer?
a = "564"
b = "2342"
print(a+b)
2609
5642324
2906
What would happen here?
a = input ("enter a number")
b = int(input("enter a number"))
print (a+b)
It would add the 2 numbers
It would join the 2 numbers together
There would be an error
which code below is correct?
a = 1995
b = 2050
print("in ", you will be , b - a)
print("in ",b, you will be , b - a)
print(" in ", b, "you will be" , b - a)
which 2 lines are incorrect here?
a = input("enter a number")
b = float(input("enter a decimal number"))
c = (round(a))
print(d)
Line 1
Line 2
Line 3
Line 4
