Python Forum
How to print out multiple drinks instead of just one based on the input?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to print out multiple drinks instead of just one based on the input?
#2
You code is over complicated for the task at hand.
You use a dictionary for your menu, why not use one for choices made?
It will make the code much simpler, and more readable.
Reply


Messages In This Thread
RE: How to print out multiple drinks instead of just one based on the input? - by Larz60+ - Jun-30-2020, 06:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Change elements of array based on position of input data Cola_Reb 6 2,171 May-13-2022, 12:57 PM
Last Post: Cola_Reb
  How to map two data frames based on multiple condition SriRajesh 0 1,508 Oct-27-2021, 02:43 PM
Last Post: SriRajesh
  Exit function from nested function based on user input Turtle 5 2,945 Oct-10-2021, 12:55 AM
Last Post: Turtle
Exclamation question about input, while loop, then print jamie_01 5 2,705 Sep-30-2021, 12:46 PM
Last Post: Underscore
  Xlsxwriter: Create Multiple Sheets Based on Dataframe's Sorted Values KMV 2 3,526 Mar-09-2021, 12:24 PM
Last Post: KMV
Question How to print multiple elements from multiple lists in a FOR loop? Gilush 6 2,984 Dec-02-2020, 07:50 AM
Last Post: Gilush
  Loop back through loop based on user input, keeping previous changes loop made? hbkpancakes 2 2,963 Nov-21-2020, 02:35 AM
Last Post: hbkpancakes
  How to print string multiple times on new line ace19887 7 5,809 Sep-30-2020, 02:53 PM
Last Post: buran
  print function help percentage and slash (multiple variables) leodavinci1990 3 2,511 Aug-10-2020, 02:51 AM
Last Post: bowlofred
  taking input doesnt print as list bntayfur 2 2,147 Jun-04-2020, 02:48 AM
Last Post: bntayfur

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020