I want to read the CSV file that i have created, and have it printed on new lines:
this is the code
rows = []
with open("test.csv", 'r') as file:
csvreader = csv.reader(file)
header = next(csvreader)
for row in csvreader:
rows.append(row)
print(header)
print(rows)
the output I get is this...
['TeamName', 'MCount']
[[], ['team One', '23'], ['Team Two', '102'], ['Team Three', '44'], ['Team Four', '40']]
I want it to look like this:
Team One 23
Team Two 102
Team Three 44
Team Four 40