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:
| Input | Result |
|---|---|
| One Hundred Years of Solitude Gabriel Garcia Marquez | Enter 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 Homer | Enter 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
Python def displaybookinformationbookname authorname Displays the book information in the following format Your favorite book is bookname written by a... View full answer
Get step-by-step solutions from verified subject matter experts
