练习1:请用索引取出下面list的指定元素:
# 请用索引取出下面list的指定元素
# -*- coding: utf-8 -*-
L = [
['Apple', 'Google', 'Microsoft'],
['Java', 'Python', 'Ruby', 'PHP'],
['Adam', 'Bart', 'Lisa']
]
# ----
# 打印Apple:
# print(?)
print(L[0][0])
# 打印Python:
# print(?)
print(L[1][0])
# 打印Lisa:
# print(?)
print(L[-1][2])