My code:
import csv
def searchProxy():
csv_file = csv.reader(open ('C:/Users/Keanu/Documents/CSV/07-12-report.csv', 'r'))
cardIdentifier = input('Enter proxy')
for row CardIdentifier in csv_file:
if Card Identifier == row[0]:
print(row)
print ('Enter to search card identifier')
src = int(input ("Enter here: "))
I'm getting this SyntaxError
:
File "C:\Users\Keanu\Documents\PythonProjects\main.py", line 8
for row CardIdentifier in csv_file:
^
SyntaxError: invalid syntax
Process finished with exit code 1
CardIdentifier
is the name of a column in my csv file, and I'm search through each row. What could be causing the error?