Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You will be given a variables title that has a random title in it . We want you to fix the title. There are spaces
You will be given a variables title that has a random title in it
We want you to fix the title. There are spaces at the beginning and at the end, and the captialization is all wrong. And, some of the words have two or more spaces between them, but should only have one.
You should set the varaible title to have a properly formatted title.
For example, if the input is this IS MY TiTle then the output should be 'This Is My Title'.
Techincally, you should not captialize is but don't worry about that this time. Capitalize all the words in the title.
You will likely need to use the string methods title, split, and join.
The setup code gives the following variables:
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