Here is a sample of my csv file:
1 Ryan Giggs £13.50 23 Manchester Utd
2 David Beckham £40.00 24 Manchester Utd
3 Michael Owen £22.00 22 Liverpool
4 Robbie Fowler £21.00 23 Leeds Utd
I have written this code with the intent to print out the first row:
import csv
with open("Footballers.csv") as f:
reader = csv.reader(f)
for row in reader:
print(row[1])
However this only print out the first(technically second) column like so:
Ryan
David
Micheal
Robbie
How can I make it print out the first row like so?
1 Ryan Giggs £13.50 23 Manchester Utd