I need a little bit of help. I just started programming. I wanted to try to make a sort of computer terminal that would ask for a user and password (For example jcd;bionicman) and when you would write in some sort of loggin that is in the registry, it would show certain text (For example "Welcome Back JC. Denton) But, when I write in the user, it just ends the process. How do I make it so that, when I write in the loggin and press enter, it would show the text, and then ask for another user: Here is an example
Program: Enter Loggin
User: jcd;bionicman
Program: Welcome back JC
Program: Enter new Loggin
I know its probably a really simple solution, but everyone has to start somewhere, right?
Here is my progress so far:
password = input()
if password == "jcd;bionicman":
print("Terminal Accessed. Welcome Back JC")
else:
print("Unknown Terminal Loggin, Try again.")
while 3 > 2:
print("Insert Terminal User and Password")
break
input()
This sort of works, but it only asks for another user once, meaning you can enter a loggin twice before the process ends.
edit: Adding a while: true, sort of broke something, now when you write a wrong loggin, it wil not say ("Unknown Terminal Loggin, try again") instead it will just ask for a new user, same with a correct loggin.