Question: 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

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!