What is the syntax error?
print("Hello World!)
The quotation mark
What is pygame?
A python library
What does RGB stand for?
Red, Green, Blue
print("Hello World!")
What is a loop?
Repeat some code
if number > 5
print("Yay")
The colon
what is len()
Get the length of a str or list
What function is used to refresh the screen
screen.display.flip() or screen.display.update()
x = 5
print(x>4)
True
What does range(1, 5) do?
[1, 2, 3, 4]
if number > 5:
print("Yay")
Indent
What is the symbol for mulitplication
*
What are the coordinates of the top left of the screen?
(0, 0)
What is the output?
"3" + "6"
"36"
What is a loop that goes on forever?
while True:
What does 2**2 return
4
myList = [1, 2, 3, 4, 5]
myList[0] = 10
myList[-1] -= 3
What will the list look like?
[10, 2, 3, 4, 2]
What are all of the parameters needed to draw a rectangle
screen, color, rect
What is the output?
"5" * 3
"555"
for i in range(5):
for j in range(6):
print("Hooray")
How many times will "Hooray" print?
30
What does 2**3 return
8
Given the function
def Walk(distance):
return "Walked " + distance +"km"
What does print(Walk(57)) do?
Walked 57km
What are all possible values this program can run at?
myClock.Tick(120)
<120
0>
What is the output?
myWord1 = "Banana"
myWorld2 = "Apple"
myWorld3 = "Orange"
print(myWord1[1:3] + myWord2[0:2] + myWord3)
anApOrange
myString = "Ok"
for i in range(3):
myString += "lol"
myString += "Ok"
What will myString be at the end?
OklollollolOk