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