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 10-14 run correctly. What did I do wrong?
# Function to start the program and show the menu.
def main():
display_banner()
while True:
display_menu()
choice = input("
Enter your choice: ")
if choice =='1':
display_birds()
elif choice =='2':
number_of_birds()
elif choice =='3':
find_bird_index()
elif choice =='4':
search_list()
elif choice =='5':
add_to_front()
elif choice =='6':
add_to_end()
elif choice =='7':
add_to_second_last()
elif choice =='8':
remove_entry()
elif choice =='9':
sort_birds()
elif choice =='10':
sort_descending_birds()
elif choice =='11':
first_and_last_birds()
elif choice =='12':
display_birds_a_to_l()
elif choice =='13':
display_birds_m_to_z()
elif choice =='14':
print("Exiting the program...")
break
else:
print("Invalid 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 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 Programming Questions!