I made my multiple choice questions based on the material from the first python lesson.
Q1. Consider the following code:
a = 7
b = a + 3
a = 2
What does b equal?
A. 5
B. 10
C. 73
D. a3
Q2. If you have a numpy array, in a variable bats
, how would you access the data item at the 5th column, 2nd row?
A. bats[2,5]
B. bats(1,4)
C. bats[1,4]
D. bats[4,1]