Answers for "if-else Conditional Statement in Python"

0

if-else Conditional Statement in Python

def authentication(password):
    if password == 'unstoppable':
        message = "Login Successful !! Welcome to the Softhunt"
    else:
        message = "Try a different password"
        
    return message
    
def main():
    print("Authentication System")
    print("======================")
    passwordInput = input("Enter your password: ")
    checkPass = authentication(passwordInput)
    print(checkPass)
main()
Posted by: Guest on April-10-2022

Code answers related to "if-else Conditional Statement in Python"

Python Answers by Framework

Browse Popular Code Answers by Language