correctusername = "cold" correctpassword = "palmer" userusername = input( "Username:" ) userpassword = input( "Password: ") if userusername == correctusername : if userpassword == correctpassword : print( "Welcome!" ) else: print( "Sorry, but your password is incorrect" ) else: print( "Sorry, but your username is not recognised" )