????????:Write the Author class with the required methods to give the followingoutputs as shown.# Write your codes here.# Do not change the following lines of code.a1 = Author()print("=================================")a1.addBook(“Ice”, “Science Fiction”)print("=================================")a1.setName(“Anna Kavan”)a1.addBook(“Ice”, “Science Fiction”)a1.printDetail()print("=================================")a2 = Author(“Humayun Ahmed”)a2.addBook(“Onnobhubon”, “Science Fiction”)a2.addBook(“Megher Upor Bari”, “Horror”)print(=================================")a2.printDetail()a2.addBook(“Ireena”, “Science Fiction”)print("=================================")a2.printDetail()print("=================================")OUTPUT:=================================A book can not be added without author name=================================Number of Book(s): 1Author Name: Anna KavanScience Fiction: Ice==================================================================Number of Book(s): 2Author Name: Humayun AhmedScience Fiction: OnnobhubonHorror: Megher Upor Bari=================================Number of Book(s): 3Author Name: Humayun AhmedScience Fiction: Onnobhubon, IreenaHorror: Megher Upor Bari=================================
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here