Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. username=input('enter username')
  2. password=input('enter password')
  3.  
  4. file=open('users1','a')
  5. file.write(username + ',' + password +'n')
  6.  
  7. user=input('username')
  8. passw=input('password')
  9.  
  10. file=open('users','r')
  11. searchline=file.readline()
  12.  
  13. for line in file:
  14. if user in line:
  15. x=line
  16. y=x.split(',')
  17. print(y[1])
  18. if user == y[1]:
  19. print('access confirmed')
  20. else:
  21. print('pass=', y[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement