Type of loop that repeats a block of code a specific number of times.
What is a "for" loop?
A container that stores a value.
What is a variable?
The result of the expression 4 + 3 * 2.
What is 10?
The parameter in the function below:
def square(number):
return number * number
What is num?
Answer (True or False) to the following condition when x = 9.
(x != 9)
What is False?
A loop that starts at 1 and ends at 5 repeats this many times.
What is 5?
If x = 10 and then x = x + 5, this is the new value of x.
What is 15?
The result of the operation (3 + 1) * 9.
What is 36?
The name of the function in the code below:
What is greet?
The output of the following code:
number = 5
if(number > 10):
print("I'm bigger than 10!")
What is blank or nothing?
This is what the loop below prints
What is "Hi" printed 3 times?
This is why programmers use variables instead of typing numbers directly into code.
What is to store values so they can be reused or changed?
The result of the operation 3 x 5 + 5?
What is <Syntax Error> or Error?
(You can't use the letter "x" as a multiplication symbol!)
Why functions are used in computer programs.
What is to keep code organized and avoid repetition?
The word that tells the computer to check something.
What is if?
The reason we use loops instead of writing the same lines over and over.
What is to avoid typing the same code over and over?
Type of variable that stores text inside quotation marks.
What is a String?
The result of integer division: 7 // 2.
Word that is used to create a function in Python.
(def means "define)
Type of variable used to tell is something is True or False.
What is a Bool or Boolean?
A loop that never stops running.
What is an infinite loop?
What this code prints
name = "Ava"
age = 13
print("name + age")
name + age
This operator (%) gives you this type of result.
What is remainder?
The purpose of the word "return" in a function.
What is to return a value?
The following code's output:
Hint: If something is false, it won't run the code that comes after it!
if(False or False):
print("Python")
elif(True and True):
print("Snake")
What is Snake?