i have a simply csv file like this:
col1,col2,col3 house,55,600 cottage,88,100
I read in this way:
with open("house.csv", "r+", newline="", encoding="UTF-8") as csv_file:
file_r = csv.DictReader(csv_file)
for row in file_r:
print(row["col1"])
How can I save the result of row["col1"] to a list?
Thanks
I try to save like this:
a = list(row["col1"])
print(a)
But I obtained
['h', 'o', 'u', 's', 'e']
['c', 'o', 't', 't', 'a', 'g', 'e']