Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

multiple choice which string method returns true if the character is a …

Question

multiple choice
which string method returns true if the character is a lowercase letter?
letter = input(\enter a letter: \)
○ islower(letter)
○ letter.islower()
○ letter.islower()
○ islower(letter)

Explanation:

Brief Explanations

In Python, the islower() method is a string - method. It is called on a string object (in this case the variable letter which holds a single - character string). The correct syntax is string_object.islower(). The other options have incorrect capitalization or incorrect function - call syntax.

Answer:

B. letter.islower()