So basically I failed at the first task which is to print the tittles of bookshelf (imported from a csv file using DictReader). But apparently DictReader now returns a OrderedDict which I have no idea how to convert to a normal Dict.
Below is the output if I print bookself:
[OrderedDict([('title', 'Adventures of Huckleberry Finn'), ('author', 'Mark Twain')]), OrderedDict([('title', 'Best Served Cold'), ('author', 'Joe Abercrombie')]), OrderedDict([('title', 'Dear Emily'), ('author', 'Fern Michaels')]), OrderedDict([('title', 'Collected Poems'), ('author', 'Robert Hayden')]), OrderedDict([('title', 'End Zone'), ('author', 'Don DeLillo')]), OrderedDict([('title', 'Forrest Gump'), ('author', 'Winston Groom')]), OrderedDict([('title', 'Gravity'), ('author', 'Tess Gerritsen')]), OrderedDict([('title', "Hiromi's Hands"), ('author', 'Lynne Barasch')]), OrderedDict([('title', 'Norwegian Wood'), ('author', 'Haruki Murakami')]), OrderedDict([('title', "Middlesex: A Novel (Oprah's Book Club)"), ('author', 'Jeffrey Eugenides')])]
The tutorial video is dated back in 2018 so I think it may worked with the older version of Python but not the current one.
Can anyone help me? Thank you.