print("2 - issue book") print("3 - return books") print("4 - search by name") print("5 - search by author name") print("6 - add book") print("7 - remove book") choice = input() if choice not in ["1", "2", "3", "4", "5", "6", "7"]: print("enter correct choice \n") continue else: choice = int(choice) if choice == 1: print("books available {} ".format(Book.name)) Book.display_books() print("\n") elif choice == 2: book = input("name of book you want to issue") student = input("enter your name") m1.issue_book(book, student) print("\n") elif choice == 3: book = input("name of book you want to return") student = input("enter your name") m1.return_book(book, student) elif choice == 4: book_name = input("enter the name of the book")