What is string?
What is iteration?
The result of the following statement.
arr = [5,3,7,8]
print(arr[2])
What is 7?
The result of the following statement.
arr = [[2,5],[3,3],[8,19],[77,2]]
print(arr[3][1])
What is 2?
My TA help session day and time.
What is Friday, 4pm to 5pm?
The return value of this code:
len("CompSci")
What is 7?
i in the following statement is an example of this (often we use j or k as well).
for i in range(10):
#do something
What is an iterator, index variable, or a counter variable?
The slice of this list.
arr = ["Hello", "World", "How", "Are", "Ya?"]
arr[1:3]
What is ["World", "How"]?
The number of rows and columns of the following 2D array.
[[1,5],[2,3],[77,8]]
What are 3 and 2?
A programming concept that is used to store information when needed later on.
What is a variable?
The number of elements in the returned array.
"Hello World, it's me!".split()
What is 4?
A loop used when you know the amount of elements you want to iterate through.
The reason we use a loop with arrays.
The data type of the result (arr[1][2]) of the following code?
arr = [["Is",6],["afraid","of",7.0],True,"or",False]
arr[1][2] // result
What is float?
The values missing from the Truth Table.
Slide 4
What is True, False?
The number of elements in the returned array.
"I will pass all of my exams, Dad!".split(",")
What is 2?
The initial value of the index, the condition to stop, and the value updated on each loop.
Slide 2
What is i=2, when i is greater than or equal to 5, and i.
The python function to get the length of a string or array.
What is len()?
The distance from Moscow to Rome.
Slide 3
What is 1462?
Double Jeopardy!
Slide 5
What is 2 and pass by reference?
What is the value of
"Never Gonna Give You Up, Never Gonna Let You Down...".split()[2]
What is Give?
What is the end condition?
Slide 6
What is green is typed as input?
An example of data that an array is good for storing.
What is ...? (judged by me >:} )
The number of loops needed to print every number in a 3D array, 1 by 1.
[ [ [4,7,9], [...] ] , [ [...], [...] ] ]
Output: 4 7 9 ...
What is 3?
The result of the following code, if the user inputs 2.
arr = ["Soup", "Cans", "Laundry"]
index = input("Index?")
arr[index] #result
What is an error (string cannot be read as int)?