The datatype which can store positive or negative whole numbers.
What is an int?
What is aList[2]?
The word that tells Python a function is about to be defined.
What is def?
The thing that will be printed when this code runs:
if (3*2 != 6):
print("Bob")
else:
print("Rob")
What is Rob?
The man with the most career World Cup Goals.
Who is Lionel Messi?
The datatype that can store decimal numbers.
What is a float?
A function that adds its argument to the end of a list.
What is append?
The name for a and b in the function definition:
def myFunc(a, b):
What are arguments?
The name for the statement inside the parentheses after the word if or elif.
What is a condition?
The country with the most World Cups.
What is Brazil?
The Python symbol for "is not equal to".
What is !=?
The name for the spot that each entry of the list occupies.
What is the index?
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?
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?
The player that scored the winning point for Argentina against Egypt.
Who is Enzo Fernández?
The datatype that the following belongs to:
(1 >= 2) or (4*2 != 9)
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?
Considering this function:
def mysteryFunc(a):
return(a/2)
The value returned by mysteryFunc(22)
The things that will be printed out when this loop runs:
for i in range(5):
print(i*3)
The only country to have competed in every World Cup without ever winning :(
What is Mexico?
The datatype we discussed in class that is made up of a sequence of another datatye.
What is a string?
A way to access the last entry in a list called myList.
What is myList[len(myList)-1]?
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?
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?
The only coach to ever win two World Cups.
Who is Vittorio Pozzo?