The two fundamental skills for any data analyst is getting data, and then cleaning it. Only then can you work your magic around the data to extract or draw actionable insights from it. When you get your data, it is never in a useable form; one of the most common problems is having to deal with spaces. Spaces are always to be avoided in naming the variables and the column names and a lot more similar places. Another problem is values like cost or any other numbers have commas in their representation, e.g. one lakh is 1,00,000 and due to this, the system treats it as a string and not an integer or float.
In this segment, you will address the first problem with the help of Sajan, and then address the second problem on your own in practice problems. You may look at the detailed problem statement in the coding quiz question below.
Well, you have already understood the pseudocode. Can you solve it now? Think, how will you convert the first letter of the words to capitals.
Let's see how Sajan has coded the above mentioned problem in Python.
You got to know how to use the 'title()' functionality in the above problem which helped in making the code cleaner. You can read more about it here.