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 bookdata 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 sortingalgorithm 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 aresorted alphabetically by title.The function will NOT have any print statements.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here