we have to write code for this function { sort_books_title } Use the function design recipe to develop a function named sort_books_title. The function takes a dictionary as an input parameter. This dictionary contains books stored. First, the function creates a list with the book data. Each list element is a dictionary where all book data is stored. Note that the same book can be in different categories, so you will have a list on the “category” key of the dictionary (see example above). Then, the function uses a bubble sorting algorithm to sort the books by their titles based on alphabetical order. The function returns a list with the book data stored as a dictionary book where the books are sorted alphabetically by title. The function will NOT have any print statements.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

we have to write code for this function { sort_books_title }

Use the function design recipe to develop a function named sort_books_title.
The function takes a dictionary as an input parameter. This dictionary contains books stored.
First, the function creates a list with the book data. Each list element is a dictionary where all book
data is stored. Note that the same book can be in different categories, so you will have a list on the
“category” key of the dictionary (see example above). Then, the function uses a bubble sorting
algorithm to sort the books by their titles based on alphabetical order.
The function returns a list with the book data stored as a dictionary book where the books are
sorted alphabetically by title. The function will NOT have any print statements.

A
C
D
E
F
1 title
2 Antiques Roadkill: A Trash 'n' Tre Barbara Allan
3 The Painted Man (The Demon Cy Peter V. Brett
4 Edgedancer: From the Stormligh Brandon Sanderson
5 Sword of Destiny: Witcher 2: Tal Andrzej Sapkowski
6 Deadpool Kills the Marvel Univei Cullen Bunn
7 After Anna
author
rating
publisher
pages
category
language
3.3 Kensington Publishing Corp.
288 Fiction
English
4.5 HarperCollins UK
544 Fiction
English
4.8 Tor Books
226 Fiction
English
4.8 Hachette UK
400 Fiction
English
4.2 Marvel Entertainment
96 Comics
English
Alex Lake
4.1 HarperCollins UK
416 Fiction
English
8 How To Win Friends and Influen Dale Carnegie
9 Little Girl Lost: A Lucy Black Thril Brian McGilloway
10 The Guardians: The explosive ne John Grisham
11 Marketing (The Brian Tracy Succ Brian Tracy
4.3 Simon and Schuster
320 Economics
English
4 Harper Collins
336 Fiction
English
N/A
Hachette UK
384 Fiction
English
N/A
AMACOM
112 Economics
English
Transcribed Image Text:A C D E F 1 title 2 Antiques Roadkill: A Trash 'n' Tre Barbara Allan 3 The Painted Man (The Demon Cy Peter V. Brett 4 Edgedancer: From the Stormligh Brandon Sanderson 5 Sword of Destiny: Witcher 2: Tal Andrzej Sapkowski 6 Deadpool Kills the Marvel Univei Cullen Bunn 7 After Anna author rating publisher pages category language 3.3 Kensington Publishing Corp. 288 Fiction English 4.5 HarperCollins UK 544 Fiction English 4.8 Tor Books 226 Fiction English 4.8 Hachette UK 400 Fiction English 4.2 Marvel Entertainment 96 Comics English Alex Lake 4.1 HarperCollins UK 416 Fiction English 8 How To Win Friends and Influen Dale Carnegie 9 Little Girl Lost: A Lucy Black Thril Brian McGilloway 10 The Guardians: The explosive ne John Grisham 11 Marketing (The Brian Tracy Succ Brian Tracy 4.3 Simon and Schuster 320 Economics English 4 Harper Collins 336 Fiction English N/A Hachette UK 384 Fiction English N/A AMACOM 112 Economics English
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education