Font size
WorksheetsPython If Else Statements
Total questions: 15
Worksheet time: 24mins
What is the output?
more than 7
more than 23
spam
7
Pieces of code that only run "under certain conditions":
conditional statements
control flow statments
syntax
variables
Which symbol means "not equal to"?
==
<=
>=
!=
Which character must be at the end of the line for if?
:
;
.
{
What does the = = symbol mean in Python?
Equal to or shows equality
Not Equal
Code that will be skipped
End of clause
What is the output?
True
False
condition1
condition2
What is the output?
250.0
200.0
300.0
350.0
What will be displayed at the end of the program?
Case 1
Case 2
Nothing will be displayed.
Case 1 and Case 2
What will be displayed at the end of the program?
Case 1
Case 2
Nothing will be displayed.
Case 1 and Case 2
What will display at the end of the program running?
You can ride the carousel!
Nothing will display
You cannot ride the carousel!
There will be an error.
What will display at the end of the program running?
You can ride the carousel!
Nothing will display
Sorry! Not tall enough!
There will be an error.
What will display at the end of the program running?
You can ride the carousel!
Nothing will display
Sorry! Not tall enough!
There will be an error.
What questions do you have about If Else Statements?
