this is my code
i want it to search in excel and update it to what user says
import csv
f=open('ayo.csv','r')
s=input('enter line: ')
n=input('enter no.: ')
fn=csv.reader(f)
for i in fn:
if i[0]==s:
print(i)
for j in i:
print(j[-1])
if j[-1]==n:
print(j[-1])```
but its not working after the if part