QUESTION IMAGE
Question
what is the output?
>> phrase = \hi dad\
>> phrase.lower()
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".
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
hi dad