Datatypes and Logic
Lists
Functions
If and Loops
World Cup
100

The datatype which can store positive or negative whole numbers.

What is an int?

100
The code used to access the third entry in a list called aList.

What is aList[2]?

100

The word that tells Python a function is about to be defined.

What is def?

100

The thing that will be printed when this code runs:

if (3*2 != 6):
    print("Bob")
else:
    print("Rob")

What is Rob?

100

The man with the most career World Cup Goals.

Who is Lionel Messi?

200

The datatype that can store decimal numbers.

What is a float?

200

A function that adds its argument to the end of a list.

What is append?

200

The name for a and b in the function definition:

def myFunc(a, b):

What are arguments?

200

The name for the statement inside the parentheses after the word if or elif.

What is a condition?

200

The country with the most World Cups.

What is Brazil?

300

The Python symbol for "is not equal to".

What is !=?

300

The name for the spot that each entry of the list occupies.

What is the index?

300

Using a function in your code by writing the name of the function with the values you want the function to take in as arguments the following parentheses. For example:

print(myFunc(1, 2))

What is calling the function?

300

The value in parentheses after range in a for loop. For example, the number 10 in:

for i in range(10):

What is the number one greater than the highest number that i will become?

300

The player that scored the winning point for Argentina against Egypt.

Who is Enzo Fernández?

400

The datatype that the following belongs to:

 (1 >= 2) or (4*2 != 9)

What is a Boolean?
400

The relationship between the length of a list and the last index of the list.

What is the last index is always one less than the length of the list?

400

Considering this function:

def mysteryFunc(a):
   return(a/2)

The value returned by mysteryFunc(22)

What is 11?
400

The things that will be printed out when this loop runs:

for i in range(5):
     print(i*3)

What are 0, 3, 6, 9, 12?
400

The only country to have competed in every World Cup without ever winning :(

What is Mexico?

500

The datatype we discussed in class that is made up of a sequence of another datatye.

What is a string?

500

A way to access the last entry in a list called myList.

What is myList[len(myList)-1]?

500

Considering the following function:

def mystery2(a, b):
    if(a[0] >= b[0]):
        return(True)
    else:
        return(False)

The value that will be returned by mystery2([1, 2, 4], [3, 2, 4])

What is False?

500

The difference between the following loop formats:

for i in range(10):

for n in list:

What is that in the first one, i starts at 0 and ends one before 10 whereas in the second, n starts at the first entry of list and stops after becoming the last entry in list?

500

The only coach to ever win two World Cups.

Who is Vittorio Pozzo?

M
e
n
u