Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started