Question: Define a function named create_books_list(lines) which takes a list of strings as a parameter and returns a list of tuples. Each tuple contains a book

 Define a function named create_books_list(lines) which takes a list of strings

Define a function named create_books_list(lines) which takes a list of strings as a parameter and returns a list of tuples. Each tuple contains a book id and a book name. You may assume that the strings in the parameter list are separated by commas. For example, consider the following string: BC001, A Song Of Ice And Fire Series' The resulting tuple is: ('BC001', 'A Song of Ice And Fire Series') For example: Result list([]) [] Ice And Fire Series', "BC002, The Hitchhiker's Guide To The Galaxy"] BC001 A Song of Ice And Fire Series _list(lines) BC002 The Hitchhiker's Guide To The Galaxy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!