Hi all,
I would like to find out how I could do query in csv excel file row by row. I don't want to use panda. If anyone know how to do it please share.
The code below does not find out the existing usernames and passwords in the file. When I open the file I can see the password and username that I am querying is there there but python cannot see it.
thanks.
I would like to find out how I could do query in csv excel file row by row. I don't want to use panda. If anyone know how to do it please share.
The code below does not find out the existing usernames and passwords in the file. When I open the file I can see the password and username that I am querying is there there but python cannot see it.
thanks.
1 2 3 4 5 6 7 |
with open ( 'Usernames_Passwords.csv' , newline = '') as myFile: reader = csv.reader(myFile) for row in reader: if row = = username and row = = password: print ( "Walid Username and Passwrod" ) else : print ( "Wrong Inputs" ) |