Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question # 4 fill in the blank what is the output for the following cod…

Question

question # 4 fill in the blank what is the output for the following code? >>> answer = \hello dad\ >>> answer.lower()

Explanation:

Step1: Understand the lower() method

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

Step2: Apply the method

The original string is "Hello Dad". When we call answer.lower(), all uppercase letters 'H' and 'D' are converted to lowercase.

Answer:

hello dad