Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 15th International Conference Dexa 2004 Zaragoza Spain August 30 September 3 2004 Proceedings Lncs 3180

Authors: Fernando Galindo ,Makoto Takizawa ,Roland Traunmuller

2004th Edition

3540229361, 978-3540229360

More Books

Students also viewed these Databases questions