What does RAM stand for?
Random Access Memory
What is the keyword to define a function?
def
A for loop uses what to iterate through?
Range
What do we call a list in Python?
Array
What do we call errors in code?
Bugs
What PC part is rated from 200W to 1600W?
Power Supply Unit
How would I call the following function?
(slide 5)
my_function()
A while loop uses what to iterate through?
Loop Condition
seasons = ['fall', 'winter', 'spring', 'summer']
What symbol assigns a value to a variable?
equals sign (=)
What PC component performs calculations based on information from some components and passes the results to others?
Central Processing Unit
In the following function... what do we call horizontal, vertical, color... the items in the ()?
def rectangle(horizontal, vertical, color):
arguments
How many times will "dog" be printed in the following:
(slide 6)
4 times
.append
.insert
What is used to make a comment in Python?
What part of a PC is a mini computer itself, with processing power and memory to calculate the complex visuals of today's games and programs?
Graphics Processing Unit
def esports():
The following code results in a syntax error. How would you fix it?
(slide 7)
Line 3 needs to be "while answer == 'y':"
.pop
.remove
What keyword do we use to get an output in Python?
What do we call the small pieces of metal that keep the motherboard raised off the case so it doesn't get fried?
Standoffs
What is a pre-installed Python library that enables users to create pictures and shapes by providing them with a virtual canvas?
Python Turtle
The following code results in a syntax error. How would you fix it?
(slide 8)
A : after line 2 and indent line 3
How would I print the following list out so each item in the list has its own line?
days_of_week = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']
for x in days_of_week:
print(x)
What do we call the 'rules' that say how a Python program will be written/looks.
syntax