Csv
with open('file.csv', newline=''):
data = [row for row in csv.reader(f)]
with open('greeks.csv') as f:
reader = csv.DictReader(f)
for row in reader:
print(row['name'],row['city'],row['dob'])
with open('file.csv', newline=''):
data = [row for row in csv.reader(f)]
with open('greeks.csv') as f:
reader = csv.DictReader(f)
for row in reader:
print(row['name'],row['city'],row['dob'])