Question: my code here is not working properly. i want main function to be asking user until choice 5. please help def get_choice(): #purpose: User picks

 my code here is not working properly. i want main function

my code here is not working properly.

i want main function to be asking user until choice 5.

please help

def get_choice():

#purpose: User picks number betwwen 1-5. error check

#parameter: none

#return none

print("Please enter the number of the option you'd like: ",end = "")

number = input()

while(True):

if number.isnumeric():

number = int(number)

if(number>=1 and number

return number

break

print("That choice is not available. Please enter a number between 1 and 5: ",end="")

number = input()

def main():

#purpose: display options 1-5

#parameter: none

#return none

while(True):

print("The following options are available:")

print("1. Demonstration of calculate_average")

print('2. Demonstration of letter_counter("brontasauruS")')

print("3. Display 'Option 3 selected'")

print("4. Display 'Option 4 selected'")

print("5. Quit")

choice = get_choice()

choice = input()

if choice == 1:

calculate_average()

elif choice == 2:

letter_counter("brontasouruS")

elif choice == 3:

print("Option 3 selected")

elif choice == 4:

print("Option 4 selected")

elif choice == 5:

print("Goodbye")

break

main()

33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 def get_choice(): #purpose: User picks number betwwen 1-5. error check #parameter: none #return none print("Please enter the number of the option you'd like: ", end = "") number input() while(True): if number.isnumeric(): number int(number) if(number>=1 and number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!