Question: write a program to ask the user to enter a book name and its author. Then display the book information exactly like the following example.

write a program to ask the user to enter a book name and its author.
Then display the book information exactly like the following example.
 

For example:

InputResult
One Hundred Years of Solitude Gabriel Garcia MarquezEnter your favourite book name: One Hundred Years of Solitude Enter the author's name: Gabriel Garcia Marquez Your favourite book is "One Hundred Years of Solitude" written by "Gabriel Garcia Marquez".
The Odyssey HomerEnter your favourite book name: The Odyssey Enter the author's name: Homer Your favourite book is "The Odyssey" written by "Homer".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python def displaybookinformationbookname authorname Displays the book information in the following format Your favorite book is bookname written by a... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!