Question: Need changes in phyton code for view_menu and del_menu commands, display an error message if the user enters an invalid contect number. def view_menu(contects_list): number

Need changes in phyton code
for view_menu and del_menu commands, display an error message if the user enters an invalid contect number.
 Need changes in phyton code for view_menu and del_menu commands, display
an error message if the user enters an invalid contect number. def

def view_menu(contects_list): number int(input("Number:")) i = number-1 print("Name:", contects_list[i][@]) print("Email:",contects_list[i][1]) print("Phone:", contects_list[i][2]) def del_menu(contects_list): number int(input("Number:")) name contects_list[number-1][0] del contects_list[number-1] print(name, "was deleted")

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!