# Exercise 2.15 # Initialization q = [['a', 'b', 'c'], ['d','e','f'],['g','h']] # a) q[0][0] # Extract the letter 'a' q[1] # Extract the list ['d','e','f'] q[2][1] # Extract the letter 'h' (alternative: q[-1][-1]) q[1][0] # Extract the letter 'd' # q[-1] is last element of outer level list: ['g','h'] # q[-1][-2] is 2nd last element of q[-1]: 'g' # b) # for i in q ---> i is a list object # for j in range(len(i)) ---> j is an integer