group_list=['Tom','Allen','Jane','William','Tony']
print(group_list[slice(0,2)])
print(group_list[slice(1,-1)])
print(group_list[slice(3,5)])