giantkeron.blogg.se

Contact book project in python code
Contact book project in python code











upper() + rem_name file1 = open(file_name, "r+" ) file_contents = file1. " ) show_main_menu() def search_contact_record (): ''' This function is used to searches a specific contact record ''' search_name = input( "Enter First name for Searching contact record: " ) rem_name = search_name first_char = search_name search_name = first_char. " ) show_main_menu() elif choice = "4" : print( "Thanks for using Phone Book Program presented by:" + " \n " + " \n For Perfect Programming Tutorials: Python, Java, C, C++" ) else : print( "Wrong choice, Please Enter \n " ) ent = input( "Press Enter to continue. " ) show_main_menu() elif choice = "3" : search_contact_record() ent = input( "Press Enter to continue. " ) show_main_menu() elif choice = "2" : enter_contact_record() ent = input( "Press Enter to continue.

contact book project in python code

close ent = input( "Press Enter to continue. read() if len(file_contents) = 0 : print( "Phone Book is empty" ) else : print (file_contents) file1. close def show_main_menu (): ''' Show main menu for Phone Book Program ''' print( " \n *** Phone Book Menu *** \n " + "author: (c) \n " + "- \n " + "Enter 1,2,3 or 4: \n " + "Enter 1 To Display Your Contacts Records \n " + "Enter 2 To Add a New Contact Record \n " + "Enter 3 To search your contacts \n " + "Enter 4 To Quit \n **********************" ) choice = input( "Enter your choice: " ) if choice = "1" : file1 = open(file_name, "r+" ) file_contents = file1. The Phone Book will display the following Menu and will support the corresponding functionality *** Phone Book Menu *** Enter 1,2,3 or 4: Enter 1 To Display Your Contacts Records Enter 2 To Add a New Contact Record a new contact Enter 3 To search your contacts Enter 4 To Quit ********************** author: (c) ''' file_name = "d://phonebook.txt" file1 = open(file_name, "a+" ) file1.

contact book project in python code contact book project in python code

''' Write a Python Program using text files to create and maintain a Phone Book.













Contact book project in python code