WorksheetsPython Code
Total questions: 11
Worksheet time: 8mins
Python code needs to be exact, what type of error will present if the code is not exact?
(a)
What is this code missing?
int
f string
brackets
Which function was used to display this code?
(a)
If a number is written like '3600', the code will believe that it is a word.
True
False
Why does 'Take an umbrella' not print in this statement?
The input doesn't match the if statement
The code was wrong
Because it isn't raining outside
An else statement was required
What will happen if you remove the if statement from the code?
The code will not run
The code will ask for input
The code will print an error
The code will always print the message
Which of the following is necessary to check a condition in Python?
if statement
for loop
print statement
input function
What will the code output if the input matches the if condition?
It will ask for input again
It will print the specified message
It will print an error
It will do nothing
How many variables are in this question?
2
1
3
unlimited
Read the code
If the following was inputted to the code, what would it print?
My dog loves to eat Cantaloupe!
(a)
If you typed bathroom into the input, what would the code respond with?
(a)
