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

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
Get step-by-step solutions from verified subject matter experts
