Mar-27-2019, 01:25 PM
thanks. I have don it but no luck so far.
username=input("Enter Username: ") password=input("Enter Passwrod: ") with open('Usernames_Passwords.csv', newline='') as myFile: reader = csv.reader(myFile) for row in reader: if row[1] == username and row[2] == password: print("Valid Username and Password") else: print("Wrong Inputs")The outcome is like:
Output:Enter Username: mus34
Enter Passwrod: hello
Wrong Inputs
Wrong Inputs
Wrong Inputs
Wrong Inputs
Wrong Inputs
Wrong Inputs
Wrong Inputs
Wrong Inputs
Wrong Inputs
Walid Username and Passwrod