Reference no: EM132354784
Question
We will call a string title case if the first letter of each word is upper case. For the purposes of this problem, we will say that a character starts a new word if:
• it appears as the first character of the string, or
• it appears immediately following a space character, or
• it appears immediately following a punctuation character (as determined by problem 3).
examples: "Hi", "Hello HOW Are You?", "Fine,Thanks", "U!S!A!", "3d T.V."
non-examples: "hi", "Hello HOW are you?", "Fine,thanks", "N!y!u!", "3d t.v."
Construct a python function that returns the title case version of a string, according to the rules above.
Only use upper function and not title function