Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

what is the output? >>> phrase = \hi dad\ >>> phrase.lower()

Question

what is the output?

>> phrase = \hi dad\
>> phrase.lower()

Explanation:

Step1: Understand the method

The lower() method in Python converts all uppercase characters in a string to lowercase.

Step2: Apply the method

The original string is "Hi Dad". When we apply the lower() method to it, "H" becomes "h" and "D" becomes "d". So the output is "hi dad".

Answer:

hi dad