def CSVReader(filename): numbers = [] with open(filename) as csvfile: csvfile.readline() for line in csvfile: cells = line.rstrip().split(";") numbers.append(float(cells[2])) print(numbers) CSVReader("100.csv")