1
AssignmentMultiple Choice

Write Password Evaluator

Question 1 • Introduction to Computer Science B – 4-232

Which string method returns true if the character is a lowercase letter? letter = input("Enter a letter: ")

Answer
A
isLower(letter)
B
letter.islower()
C
islower(letter)
D
letter.isLower()

Explanation

In Python, `islower()` is a string method, so call it on the string with dot notation: `letter.islower()`. It returns `True` when the string’s cased characters are lowercase. The correct choice is `letter.islower()`; the other choices use the wrong capitalization or call style.

AI-written and checked against the verified answer.

Next