Trace The Code
Loop Logic
If/Else Reasoning
Debug The Idea
Vocabulary/Concepts
100

What does this code print?

X = 5

print(x + 2)

7


100


For i in range (3):

print(“Hello”)

3 times


100

X = 7

If x > 5:

print(“yes”)

Else:

print(“no”)

yes


100

What is missing?

If X = 5:

print(“Hi”)

It uses = instead of ==

100

What is a variable ?

A variable stores information

200

X = 10

X = x - 3 

print (x)

7

200

For i in range (1, 5):

print(I)

1,2,3,4


200

X = 4

If x % 2 == 0:

print(“even”)

Else:

print(“odd”)

even

200

For i in range (5)

print(I)

The colon is missing


200

What does a loop do?

It runs the same code multiple times. 

300

X = 4

Y = x * 2

X = y - 3

print(x)

5

300

X = 0 

While x < 4: 

print(“Hello”)

x+= 1

4 times

300

score= 85

If score>= 90:

print(“A”)

Elif score>= 80:

print(“B”)

Else:

print(“C”)

B

300

X = 10

While x > 0:

print(X)

X-=1

The code inside loop is not indented

300

What is the purpose of an if statement ?

To make decisions in code