Mar-30-2021, 10:30 PM
How can I make an input come after another input if a certain piece of text is inputed and if not it prints something else? My current code:
username = input("username>") if username == "adrian": password = input("password>") if password == "password1": print("login sucsessfull") else: print("password incorrect.") else: print("username incorrect")But all I get is: "Process finished with exit code 0" and nothing else.