Jun-13-2020, 07:44 AM
If you were to use a list instead of a string as has been suggested:
menu = ['salad', 'pasta', 'sandwich', 'pizza', 'drinks']you can use
len
to count how many items are in the starting list:stating_menu_count = len(menu)to add items to a list, use the list method append:
menu.append('spam')by getting a new list count you can now calculate how many items have been added to the list:
added_menu_count = # ill leave you to work out this part