i'm new to python so sorry if this seems stupid: i'm trying to make a program where the user input can ask the program a "station" and it returns/print the right line.
So, for example, this is my code:
import csv
station = input("Station... ")
with open('data.csv', 'rt') as f:
reader = csv.reader(f)
for row in reader:
if row == station:
print(row)
My "data.csv" is like(https://i.stack.imgur.com/CdLRE.png). What i want is: station=input("1") then the program print "A600" and "aluminium"