From 7406c4e6ec68afdb40d5b379acd081734d9ec0b4 Mon Sep 17 00:00:00 2001 From: prabathbr <60564552+prabathbr@users.noreply.github.com> Date: Thu, 3 Mar 2022 23:40:38 +1100 Subject: [PATCH] Fixing error in column names column names should be "name,price,quantity" not "name, price, quantity", otherwise list item will be {'name': 'Phone', ' price': '100', ' quantity': '1'} when reading CSV --- 04 - Class vs Static Methods/codesnippets/items.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/04 - Class vs Static Methods/codesnippets/items.csv b/04 - Class vs Static Methods/codesnippets/items.csv index 393684d..697da6e 100644 --- a/04 - Class vs Static Methods/codesnippets/items.csv +++ b/04 - Class vs Static Methods/codesnippets/items.csv @@ -1,6 +1,6 @@ -name, price, quantity +name,price,quantity "Phone",100,1 "Laptop",1000,3 "Cable",10,5 "Mouse",50,5 -"Keyboard",75,5 \ No newline at end of file +"Keyboard",75,5