Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Python def displaybookinformationbookname authorname Displays the book information in the following format Your favorite book is bookname written by a...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started