Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- username=input('enter username')
- password=input('enter password')
- file=open('users1','a')
- file.write(username + ',' + password +'n')
- user=input('username')
- passw=input('password')
- file=open('users','r')
- searchline=file.readline()
- for line in file:
- if user in line:
- x=line
- y=x.split(',')
- print(y[1])
- if user == y[1]:
- print('access confirmed')
- else:
- print('pass=', y[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement