when i am working on below code,python returns
for(temp in range(len(history_list))):
^
SyntaxError: invalid syntax"
i really can't figure out what cause the error ,if you have any idea please leave a comment,thank you.
with open('history.csv', 'r',newline='') as file:
history_list = csv.reader(csvfile)
for(temp in range(len(history_list))):
if(keyword==history_list[temp][0]):
#do something
break