Advertisement
Guest User

help

a guest
Dec 22nd, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 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. error message
  11. =============================
  12.  
  13. Exception has occurred: TypeError
  14. unsupported operand type(s) for +: 'int' and 'str'
  15.   File "D:\Desktop\python\login.py", line 29, in register
  16.     f.write (create_user + ' : ' + create_pass, admin + "\n")
  17.   File "D:\Desktop\python\login.py", line 18, in start
  18.     register()
  19.   File "D:\Desktop\python\login.py", line 94, in <module>
  20.     start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement