create a dictionary of dictionaries       where each key in the outer dictionary is an author whose last name starts with the letter 'S'.     - Each inner dictionary should contain the number of books that author has written as 'Number of Books'     - It should contain the earliest book title for that author based on year with the key 'First Book'     - Finally it should contain the latest book title for that author based on year with the key 'Last Book'     - If an author has only one book put the same title in both places     - Return the dictionary of dictionaries def author_history(cleaned_list):     Args:         cleaned_list (list)     Returns:         dictionary of dictionaries     Output:         {'SafranFoer,Jonathan': {'First Book': 'ExtremelyLoudandIncrediblyClose',                                   'Last Book': 'ExtremelyLoudandIncrediblyClose',                                   'Number of Books': 1},           'Salter,James': {'First Book': 'LastNight',                             'Last Book': 'LastNight',                             'Number of Books': 1},              ...          'Szado,Ania': {'First Book': 'StudioSaintEx',                         'Last Book': 'StudioSaintEx',                         'Number of Books': 1}}

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

 

import json, datetime, csv
from pprint import pprint

 

Question 3
    - Using the cleaned list of lists from question 1, create a dictionary of dictionaries
      where each key in the outer dictionary is an author whose last name starts with the letter 'S'.
    - Each inner dictionary should contain the number of books that author has written as 'Number of Books'
    - It should contain the earliest book title for that author based on year with the key 'First Book'
    - Finally it should contain the latest book title for that author based on year with the key 'Last Book'
    - If an author has only one book put the same title in both places
    - Return the dictionary of dictionaries

def author_history(cleaned_list):

    Args:
        cleaned_list (list)
    Returns:
        dictionary of dictionaries

    Output:
        {'SafranFoer,Jonathan': {'First Book': 'ExtremelyLoudandIncrediblyClose',
                                  'Last Book': 'ExtremelyLoudandIncrediblyClose',
                                  'Number of Books': 1},
          'Salter,James': {'First Book': 'LastNight',
                            'Last Book': 'LastNight',
                            'Number of Books': 1},
             ...
         'Szado,Ania': {'First Book': 'StudioSaintEx',
                        'Last Book': 'StudioSaintEx',
                        'Number of Books': 1}}

Expert Solution
Step 1 introduction

Python is the programming languages .Python which refers to the high-level, general purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python which is dynamically-typed and garbage collected. It supports the multiple programming paradigms and including structured and also object-oriented and functional programming.

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Operations of Linked List
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY