Я пытаюсь сделать электронное меню c для закусочной, одна из обязательных функций - иметь возможность добавлять в меню. Я не очень хорошо разбираюсь в отладке, и теперь я получаю сообщение об ошибке:
Можно только объединить список (не строку) в список
Я не знаю, что это значит, и перепробовал все, чтобы избавиться от ошибки, но go это не исчезнет. вы можете мне помочь?
menu = (["all day breakfast large, £5.50", "all day breafast small, £3.50", "hot dog, £3.00", "burger, £4.00", "cheese burger, £4.25", "chicken goujons, £3.50", "fries, £1.75", "salad, £2.20", "milkshake, £2.20", "soft drinks, £1.30", "still water, £0.90", "sparkling water, £0.90"])
for i in menu:
text_file.write(i)
elif menu_editing == "add":
add_item_number = (input("please enter what number you would like to add the new item. "))
add_item_name = (input("""please enter the name of the item like this: all day breakfast large"""))
add_item_price = (input("please enter the price of the item you wish to add without the pound sign. "))
menu == menu + "",add_item_name,"£"+add_item_price[add_item_number]