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:
But all I get is: "Process finished with exit code 0" and nothing else.
1 2 3 4 5 6 7 8 9 10 |
username = input ( "username>" ) if username = = "adrian" : password = input ( "password>" ) if password = = "password1" : print ( "login sucsessfull" ) else : print ( "password incorrect." ) else : print ( "username incorrect" ) |