Menu

(Solved) : Given Code Re Suppose Put Code Eight Functions First Function Deletelistentry Made Used Si Q37179819 . . .

So you are given this code and you’re suppose to put the codeinto eight functions the first function delete_list_entry has beenmade for you and can be used as a single function for both adding abook and and adding a member.
The code is for a simple library implementation.else: print (bor rowed [book name]) elif commandISSUE BOOK: book name input(Enter book name: if book name not in books: printthis is in python so please code it in python thanks.

media%2F7ea%2F7ea65314-b179-480c-91ef-9felse: print (bor rowed [book name]) elif commandISSUE BOOK: book name input(Enter book name: if book name not in books: print
also one of the functions is named process( ) where a loop isenvolved.else: print (bor rowed [book name]) elif commandISSUE BOOK: book name input(Enter book name: if book name not in books: print(“No book named, book name) elif book name not in borrowed: member ame input( Enter member name:) if member name not in members: print( “No nember named, member nane) borrowed [ book name] nember name print(book name, is already borroved” else: else: elif command RETURN BOOK book name input (Enter book name:) if book name not in books: elif book name not in borrowed: else: print(“No book named,book name) print(“Book,book name, “is not borrowed) del borrowed [book nane] elif commandLIST KEMBERS for member in members: print (member) elif commandLIST BOOKS: for book in books: print (book) elif commandPRINT HELP: # print menu print ( “The commands are: print(ADD MEMBER, “to add a member”) print( DELETE MEMBER, to delete a member”) print(ADD BOOK, “to add a book print(DELETE BOOK, “to delete a book) print(FIND BORROWER, to find out borrower of a book” printISSUE BOOK, to issue a book) print RETURN BOOK,to return a book) printLIST NEMBERS, “to 1ist members) print LIST BOOKS, “to list books printPRINT HELP. “to print this menu) print( EXIT, “to quit”) co㎜and . int (input( “Enter a co㎜and- + str (PRINT HELP ) + for help “)) We were unable to transcribe this imageelse: print (bor rowed [book name]) elif commandISSUE BOOK: book name input(Enter book name: if book name not in books: print (“No book n㏂ed-, book-nane) elif book name not in borrowed: member-nane ” input(“Enter mber nane: “) if member name not in members: print( “No nember named, member nane) borrowed [ book name] nember name print(book name, is already borroved else: Ise: elif commandRETURN BOOK: book name input (Enter book name:) if book name not in books: elif book name not in borrowed: else: print(“No book named, book name) print( “Book,book name, “is not borrowed) del borrowed [book nane] elif commandLIST HEMBERS for member in members: print (member) elif commandLIST BOOKS: for book in books: print (book) elif commandPRINT HELP: # print menu print (“The commands are: print(ADD MEMBER, “to add a member”) print(DELETE MEMBER, to delete a member) print(ADD BOOK,”to add a book print(DELETE BOOK, “to delete a book) print(FIND BORROWER, to find out borrower of a book” printISSUE BOOK to issue a book) print( RETURN BOOK, “to return a book) printLIST NEMBERS, “to 1ist members print(LIST BOOKS,”to list books printPRINT HELP. to print this menu) print(EXIT, “to quit”) co㎜and . int (input( “Enter a co㎜and- + str (PRINT HELP) + for help “)) Show transcribed image text else: print (bor rowed [book name]) elif commandISSUE BOOK: book name input(Enter book name: if book name not in books: print(“No book named, book name) elif book name not in borrowed: member ame input( Enter member name:) if member name not in members: print( “No nember named, member nane) borrowed [ book name] nember name print(book name, is already borroved” else: else: elif command RETURN BOOK book name input (Enter book name:) if book name not in books: elif book name not in borrowed: else: print(“No book named,book name) print(“Book,book name, “is not borrowed) del borrowed [book nane] elif commandLIST KEMBERS for member in members: print (member) elif commandLIST BOOKS: for book in books: print (book) elif commandPRINT HELP: # print menu print ( “The commands are: print(ADD MEMBER, “to add a member”) print( DELETE MEMBER, to delete a member”) print(ADD BOOK, “to add a book print(DELETE BOOK, “to delete a book) print(FIND BORROWER, to find out borrower of a book” printISSUE BOOK, to issue a book) print RETURN BOOK,to return a book) printLIST NEMBERS, “to 1ist members) print LIST BOOKS, “to list books printPRINT HELP. “to print this menu) print( EXIT, “to quit”) co㎜and . int (input( “Enter a co㎜and- + str (PRINT HELP ) + for help “))

else: print (bor rowed [book name]) elif commandISSUE BOOK: book name input(Enter book name: if book name not in books: print (“No book n㏂ed-, book-nane) elif book name not in borrowed: member-nane ” input(“Enter mber nane: “) if member name not in members: print( “No nember named, member nane) borrowed [ book name] nember name print(book name, is already borroved else: Ise: elif commandRETURN BOOK: book name input (Enter book name:) if book name not in books: elif book name not in borrowed: else: print(“No book named, book name) print( “Book,book name, “is not borrowed) del borrowed [book nane] elif commandLIST HEMBERS for member in members: print (member) elif commandLIST BOOKS: for book in books: print (book) elif commandPRINT HELP: # print menu print (“The commands are: print(ADD MEMBER, “to add a member”) print(DELETE MEMBER, to delete a member) print(ADD BOOK,”to add a book print(DELETE BOOK, “to delete a book) print(FIND BORROWER, to find out borrower of a book” printISSUE BOOK to issue a book) print( RETURN BOOK, “to return a book) printLIST NEMBERS, “to 1ist members print(LIST BOOKS,”to list books printPRINT HELP. to print this menu) print(EXIT, “to quit”) co㎜and . int (input( “Enter a co㎜and- + str (PRINT HELP) + for help “))

Expert Answer


Answer to So you are given this code and you’re suppose to put the code into eight functions the first function delete_list_entr…

OR