Question: 4. (25 points) We will call title case the condition when the first letter of every word in a string is upper case. Write a

 4. (25 points) We will call title case the condition when

4. (25 points) We will call title case the condition when the first letter of every word in a string is upper case. Write a function named title casethat will convert a string to title case by capitalizing the first letter of every word. Non-first letters should be left unchanged. You may use the upper) function to convert a character to upper case. >>>text-"v" >text. upper () Please include a signature at the top of your function. Before submitting your work, verify that your function works correctly by testing it in Python's interactive mode with the following inputs: >>> title case ("hello") Hello' >>>title_case ("He ate all the avocados!") He Ate All The Avocados! >>>title_case ("and the BANANAS?") And The BANANAS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!