1 Add in voice.
2. Display in voice.
3.Search in voice
4.Delete in voice.
5 exit
Once user enter the option 1 you need to ask the following detail from the user
- Invoice number.
- Custmor name.
- Contacet number
- Invocie amount.
def add_Invoice():
add_option = input("Enter you choose option number :")
Invoice_Number = input("Add in voice :")
Display_number = input("Display in voice :")
input("Search in voice :")
input("Delete in voice :")
input("Exit !")
print(“Invoice added successfully.n”)
def add_Display():
def add_Search():
invoice_number = input("Enter Invoice Number to Search: ")
def add_Delete():
invoice_number = input("Enter Invoice Number to delete: ")
def main():
Invoice = []
while True:
print("1. Add Invoice")
print("2. Display Invoice")
print("3. Search Invoice")
print("4. Delete Invoice")
print("5. Exit")
choice = int(input("Enter your choice: "))
if choice == 1:
add_Invoice()
elif choice == 2:
add_Display()
elif choice == 3:
add_Search()
elif choice == 4:
add_Delete()
elif choice == 5:
print("Exiting the program. Goodbye!")
break
else:
print("Invalid Choice")
New contributor
Anghan Pal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.