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...



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

Extracted 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
Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here