Which string method returns true if the character is a lowercase letter? letter = input("Enter a letter: ")
You wrote a program to determine if a password contained a numeric character. password = input("Password? ") hasNumber = False for character in password: if character.isdigit(): hasNumber = True break Finish the code that is a shorter alternate.
A strong password should contain ______. Select 4 options.
Complete the code to check the length of a password. When done, valid should be True if the password is between eight and 20 characters long. Valid will be False if it is not.
Complete the code to check whether a string contains at least one lowercase letter.
Which string method returns true if the character is an uppercase letter? letter = input("Enter a letter: ")
Did you find these answers helpful?