✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
On antud file.csv CSV-fail, mille sisu on järgnev:
student,GPA,faculty
Rainer Radu,4.1,IT
Laura Kivi, 3.2, Business
Triin Kukk,4.7,Maritime
Priit Orav,2.8,Engineering
Ants Jakobson,5.0,Science
Mis on tulemus peale järgneva koodi jooksutamist?
import csv
with open('file.csv') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
for row in csv_reader:
print(row)