Question: Write the Python code to implement the function title _ case ( s ) where s is a string. The function returns a new string
Write the Python code to implement the functiontitlecaseswheresis a string. The function returns anew string where the first letter of each word is capitalized, and the rest of the letters in the word are lowercase. Tip: If needed splitandjoin builtin method can be useful here! Remember that material not covered in class cannot be used, thus, the string methods capitalize lower upper and others related to letters cannot be used here! Refer to the handson lecture videos for a baseline for treating each characater.
Example:
titlecasewe Are peNN state'
We Are Penn State'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
