Created
March 18, 2019 20:22
-
-
Save yeaske/5b89678a762897b515ff2e1309d99cdd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
books = [ | |
{ | |
"author": "Chinua Achebe", | |
"title": "Things Fall Apart", | |
"year": 1958 | |
}, | |
{ | |
"author": "Hans Christian Andersen", | |
"title": "Fairy tales", | |
"year": 1836 | |
}, | |
{ | |
"author": "Dante Alighieri", | |
"title": "The Divine Comedy", | |
"year": 1315 | |
}, | |
{ | |
"author": "Hans Christian Andersen", | |
"title": "Fairy tales", | |
"year": 1836 | |
}, | |
{ | |
"author": "Jane Austen", | |
"title": "Pride and Prejudice", | |
"year": 1813 | |
}, | |
{ | |
"author": "Honor\u00e9 de Balzac", | |
"title": "Le P\u00e8re Goriot", | |
"year": 1835 | |
}, | |
{ | |
"author": "Jane Austen", | |
"title": "Pride and Prejudice", | |
"year": 1813 | |
}, | |
{ | |
"author": "Samuel Beckett", | |
"title": "Molloy, Malone Dies, The Unnamable, the trilogy", | |
"year": 1952 | |
}, | |
{ | |
"author": "Giovanni Boccaccio", | |
"title": "The Decameron", | |
"year": 1351 | |
}, | |
{ | |
"author": "Jorge Luis Borges", | |
"title": "Ficciones", | |
"year": 1965 | |
}, | |
{ | |
"author": "Emily Bront\u00eb", | |
"title": "Wuthering Heights", | |
"year": 1847 | |
}, | |
{ | |
"author": "Jorge Luis Borges", | |
"title": "Ficciones", | |
"year": 1965 | |
}, | |
{ | |
"author": "Jorge Luis Borges", | |
"title": "Ficciones", | |
"year": 1965 | |
} | |
] | |
object_list = [Book(book['author'], book['title'], book['year']) for book in books] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment