- 3
what am i doing wrong?
grocery_list = ['juice', 'tomatoes', 'potatoes','bananas'] print('First Item', grocery_list[0]) grocery_list[0] = 'Green Juice' print('First Item', grocery_list[0]) print(grocery_list[1:3]) other_events = ['Wash Car', 'pick up kids', 'cash check'] to_do_list = [other_events, grocery_list] print(to_do_list) print((to_do_list[1][1])) grocery_list.append('Onions') print(to_do_list) grocery_list.insert(1, "Pickle") grocery _list.remove("Pickle") grocery_list.sort() grocery_list.reverse() del grocery_list[4] print(to_do_list)
2 ответов
+ 3
0
sorry guys