Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON PROGRAM Books and Authors A book could be written by a single author or multiple authors. Write a program to read the books and
PYTHON PROGRAM Books and Authors
A book could be written by a single author or multiple authors. Write a program to read the books and authors in the books.txt file and put them in a dictionary. Output the books organized by author.
Name the source code file books.py.
Your program should behave as follows:
Carroll ["Alice's Adventures in Wonderland "] Twain ['Adventures of Huckleberry Finn', 'Tom Sawyer'] Austen ['Pride and Prejudice '] Benedict ['How to Analyze People on Sight '] Vatsyayana ['The Kama Sutra of Vatsyayana'] Johnson ['The Song My Paddle Sings'] Sunzi ['The Art of War '] Bronte ['Jane Eyre '] Doyle ['The Adventures of Sherlock Holmes ']
books.txt
The Kama Sutra of Vatsyayana, Vatsyayana The Song My Paddle Sings, E. Pauline Johnson Adventures of Huckleberry Finn, Mark Twain The Adventures of Sherlock Holmes , Sir Arthur Conan Doyle Pride and Prejudice , Jane Austen How to Analyze People on Sight , Elsie Lincoln Benedict Alice's Adventures in Wonderland , Lewis Carroll The Art of War , Sunzi Jane Eyre , Charlotte Bronte Tom Sawyer, Mark Twain
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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