Lists
Dictionaries
Functions
Classes
100

If:

x = [0,1,4,"turtle"],

then x[2] will return this.

What is 4?

100

If:

fav_players = {'Ben': 'Sock', 

'Brendan': 'Paul', 

'Coach Liam': 'Safin', 

'Cole': 'Sharapova', 

'Michael': 'Nadal', 

'Nico': 'Kyrgios', 

'Tucker': 'Monfils'}

then fav_players[3] will return this.

What is KeyError: 3? ("What is an error?" is also an acceptable answer)

100
The first line you would need to type to create a function named "forehand".

What is "def forehand()"?

100

If specific instances of classes are like loaves of bread, then classes themselves are like these.

What are ovens?

200

The word for an element's position in a list.

What is an index?

200

If

dogs = {

"Onyx" : ["Black", "Large", "Medium-length Fur"],

"Lyla" : ["Black", "Medium", "Short Fur"],

"Bodie" : ["Brown", "Large", "Short Fur"]

}

then dogs["Onyx"][2] will return this.

What is "Medium-length Fur"?

200

A word for what goes in the parentheses of a function.

What is input, argument, or parameter?

200

Classes can have methods and these.

What are attributes?

300

If:

animals = ["fish", "baboon", "turkey", "vulture"]

then animals[2:4] will return this.

What is ["turkey", "vulture"]?

300

The kinds of pairs that dictionaries store.

What are key:value pairs?

300

A function doesn't have to have on of these, but if you want to store anything the function produces, it must.

What is a return statement?

300

This very common class method sets up starting characteristics of any instantiation of that class.

What is __init__()?

400

Lists are this, while tuples are not.

What is "mutable"?

400
If 

dict = {

"Rafa" : "Lefty",

"Fed" : "Righty",

"Marcelo Rios" : "Lefty",

"Safin" : "Righty"

}

then 

for key in dict.keys():

    if dict[key]=="Lefty":

        print(key)


will return this.

What is "'Rafa', 'Marcelo Rios'"?

400

If 

def testfunction():

 x = 5

 y = [10, 6, 4]

 return x, y

p, q = testfunction()

then q[1]/2 is this.

What is 3?

400
While it isn't a Python keyword, by convention we use this variable name to represent an instance of a class in the definition of that class.

What is self?

500

If

test_scores = [95, 96, 92, 100, 94]

then test_scores[1:-1] will return this.

What is [96, 92, 100]?

500
If 

dict = {

"dogs" : ["German Shepard", "Border Collie", "Labrador"],

"cats" : ["Tabby", "Calico", "Black"]

}

then this is how you would add "Schnauzer" listed dog breeds.

What is dict["dogs"].append("Schnauzer")?

500

If

def change_me(v):

  print ("function got:", v)

  v = 10

  print ("argument is now:", v)

then the following block of code will return this.

myvar = 5

print ("starting with:", myvar)

change_me(myvar)

print ("ending with:", myvar)

What is

"starting with: 5

function got: 5

argument is now: 10

ending with: 5"?

500

If 

class Person:
  def __init__(self, name, age):
    self.name = name
    self.age = age

and 


p1 = Person("John", 36)


then we'd write this to show John's age.

What is print(p1.age)?

M
e
n
u