Question: Why doesn't 1 0 - 1 4 run correctly. What did I do wrong? # Function to start the program and show the menu. def
Why doesn't run correctly. What did I do wrong?
# Function to start the program and show the menu.
def main:
displaybanner
while True:
displaymenu
choice input
Enter your choice:
if choice :
displaybirds
elif choice :
numberofbirds
elif choice :
findbirdindex
elif choice :
searchlist
elif choice :
addtofront
elif choice :
addtoend
elif choice :
addtosecondlast
elif choice :
removeentry
elif choice :
sortbirds
elif choice :
sortdescendingbirds
elif choice :
firstandlastbirds
elif choice :
displaybirdsatol
elif choice :
displaybirdsmtoz
elif choice :
printExiting the program..."
break
else:
printInvalid choice. Please select a valid option."
# Start the program
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
