Hi there,
I'm just trying to apply what I've learned so far. I just thinking of a way to add food choice to the current menu. I want my code to allow 4 food choices to be added to the current menu. I'm looking to improve on my basic coding ability, this is what I've come up with so far, its wrong, can someone guide me how do i improve on it?
Thanks
I'm just trying to apply what I've learned so far. I just thinking of a way to add food choice to the current menu. I want my code to allow 4 food choices to be added to the current menu. I'm looking to improve on my basic coding ability, this is what I've come up with so far, its wrong, can someone guide me how do i improve on it?
Thanks
while True: tries = "" add_menu = "" menu = ("salad, pasta, sandwich, pizza, drinks") add_menu = input("Enter input: ") add_menu = menu +", " + add_menu tries += 1 if tries == 4: print(add_menu) breakThe purpose of having the "+=1" is to tell the code that one choice has been undertaken and when tries == 4, print out the menu with the 4 new choices