Advertisement
Guest User

help

a guest
Dec 22nd, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.66 KB | None | 0 0
  1. def register():
  2.     global admin
  3.     create_user = input("Create your username: ")
  4.     create_pass = input("Create your password: ")
  5.     f = open("users.txt" , "a")
  6.     f.write (create_user + ' : ' + create_pass, admin + "\n")
  7.  
  8.  
  9.     f.close
  10.  
  11.  
  12. =====================
  13. error message
  14. =====================
  15.  
  16. Exception has occurred: TypeError
  17. unsupported operand type(s) for +: 'int' and 'str'
  18.   File "D:\Desktop\python\login.py", line 29, in register
  19.     f.write (create_user + ' : ' + create_pass, admin + "\n")
  20.   File "D:\Desktop\python\login.py", line 18, in start
  21.     register()
  22.   File "D:\Desktop\python\login.py", line 94, in <module>
  23.     start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement