@madmonster/

password

Python

No description

fork
loading
Files
  • main.py
  • info.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#input
i = input("A: login\nB: create account").lower()
#if statement1
if i == "a":
  account = input("Enter account name: ")
  password = input("Enter password: ")
  o = open("info.txt")
  if account and password in o:
    print("logged in as %s" % account)
    #add program
  else:
   print("Rerun program")

#if statement2    
if i == "b":
  account = input("Enter new account name: ")
  password = input("Enter new password name: ")
  o = open("info.txt", "a")
  o.write(account+" "+password)
  o.close()