1.6k views
5 votes
What is the output?

>>> phrase = "Hi Dad"
>>> phrase.lower()
>>>

1 Answer

4 votes

Answer:

Following are the modified code to this question:

phrase = "Hi Dad"#defining a variable that stores a string variable

print(phrase.lower())#Use print method that use lower method to print value in lower case

Output:

hi dad

Step-by-step explanation:

In the above python code, a phrase variable is declared, that store a string value "Hi Dad", and in the next step, a print method is used, and inside the method a lower() method is used, in which it converts the string value into the lower case, that's why the above code output is "hi dad" into the lower case.

User Jenny Kim
by
5.2k points