What will be the value of x after the following code runs?
x = 10
x = x + 5
What is 15?
What is the output of the following code?
for i in range(3):
print(i)
What is 0, 1, and 2?
What is printed?
x = 10
if x > 5:
print("Yes")
else:
print("No")
What is “Yes”?
What is wrong with this code?
print "Hello"
What is a missing parentheses in the print statement?
What is a variable?
What is a storage name that holds data a program can use and change?
What will be the value of y after the following code runs?
y = 3
y += 2
y *= 2
What is 12?
How many times does the loop run in this code?
for i in range(2, 6):
print(i)
What is 4?
What is Printed?
x = 4
if x % 2 == 0:
print("Even")
else:
print("Odd")
What is “Even”?
Why doesn’t this code work?
if x = 5:
print("Yes")
What is “using = instead of == for comparison in an if statement”?
What does a loop do in a program?
What is a loop repeats a block of code multiple times?
What will the value of num after the following code runs?
num = 5
num = num * 2
num = num - 3
What is 8?
What will this code output?
x = 0
while x < 5:
print(x)
x += 1
What is 0, 1, 2, 3, and 4?
What is Printed?
score = 85
if score >= 90:
print("A")
elif score >= 80:
print("B")
else:
print("C")
What is “B”?
What needs to be fixed?
for i in range(5)
print(i)
What is “the for loop is missing a colon at the end”?
What is the difference between = and ==?
What is = assigns a value to a variable, while == checks if two values are equal?