Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print ("\nEnter details to access wallet...\n")
- """
- Open File
- """
- with open("Credentials.txt", "r") as f:
- array = []
- for line in f:
- array.append(line) #stores username and password
- username = array[0]
- password = array[1]
- login = 0 #initial login status
- while login == 0: #as long as login status = 0 loop repeats
- userInput = input("Username?\n")
- if userInput == username:
- userInput = input("Password?\n")
- if userInput == password:
- login = 1 #login successful set login status to 1 thus breaking loop
- else:
- print("Incorrect")
- else:
- print("Incorrect")
- print('\n--------------------------------------------------------\n')
- # Login successful loop finished
- print("Welcome!")
- print('\n--------------------------------------------------------\n')
- print ("BTN = 0.10")
- print ("= £315.37")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement