Problem H: python--列表的应用2

Problem H: python--列表的应用2

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

已知列表key=[5,10,6,9,12,15,0]。实现功能:

1、输出9
2、输出[9,12,15,0] 


请修改下面的程序,实现上述功能
key=[5,10,6,9,12,15,0]
print(key[             ])
print(key[            :                   ])

Sample Output Copy

9
[9,12,15,0]