Question: What will display after the following code executes? password = 'ILOVEPYTHON 1 2 3 ' if password, isalpha ( ) : print ( ' Invalid
What will display after the following code executes?
password 'ILOVEPYTHON
if password, isalpha :
printInvalid must contain one number.
elif password.isdigit:
print Invalid must have one nonnumeric character.
elif password. isupper :
printInvalid cannot be all uppercase characters.
else:
print Your password is secure
Invalid, must contain one number.
Invalid, must have one nonnumeric character.
Your password is secure
Invalid, cannot be all uppercase characters.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
