From 783e9016cad20eca4d3fb776bbc8e8c13390eafb Mon Sep 17 00:00:00 2001 From: gahjelle Date: Mon, 18 Sep 2023 21:21:24 +0200 Subject: [PATCH] Final QA updates --- python-tuple/data_class.py | 2 +- python-tuple/employee_data_class.py | 2 +- python-tuple/employee_named_tuple.py | 2 +- python-tuple/employees.csv | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python-tuple/data_class.py b/python-tuple/data_class.py index 8281dc49fc..bac8bc7dd8 100644 --- a/python-tuple/data_class.py +++ b/python-tuple/data_class.py @@ -11,7 +11,7 @@ class Employee: with open("employees.csv", mode="r") as csv_file: reader = csv.reader(csv_file) - _ = next(reader) # Skip headers + next(reader) # Skip headers employees = [] for name, age, position in reader: employees.append(Employee(name, int(age), position)) diff --git a/python-tuple/employee_data_class.py b/python-tuple/employee_data_class.py index 8281dc49fc..bac8bc7dd8 100644 --- a/python-tuple/employee_data_class.py +++ b/python-tuple/employee_data_class.py @@ -11,7 +11,7 @@ class Employee: with open("employees.csv", mode="r") as csv_file: reader = csv.reader(csv_file) - _ = next(reader) # Skip headers + next(reader) # Skip headers employees = [] for name, age, position in reader: employees.append(Employee(name, int(age), position)) diff --git a/python-tuple/employee_named_tuple.py b/python-tuple/employee_named_tuple.py index 9675ab3d11..257db1817b 100644 --- a/python-tuple/employee_named_tuple.py +++ b/python-tuple/employee_named_tuple.py @@ -10,7 +10,7 @@ class Employee(NamedTuple): with open("employees.csv", mode="r") as csv_file: reader = csv.reader(csv_file) - _ = next(reader) # Skip headers + next(reader) # Skip headers employees = [] for name, age, position in reader: employees.append(Employee(name, int(age), position)) diff --git a/python-tuple/employees.csv b/python-tuple/employees.csv index b74fa784f0..a364f4049b 100644 --- a/python-tuple/employees.csv +++ b/python-tuple/employees.csv @@ -3,4 +3,4 @@ name,job,email "Joe",32,"Senior Web Developer" "Lara",40,"Project Manager" "David",25,"Data Analyst" -"Jane",40,"Senior Python Developer" \ No newline at end of file +"Jane",40,"Senior Python Developer"