← Back to challenges

Check If It's a Title String

PythonMediumformattingvalidationstringslanguage_fundamentals

Instructions

Check if a string txt is a title text or not. A title text is one which has all the words in the text start with an upper case letter.

Examples

check_title("A Mind Boggling Achievement") ➞ True

check_title("A Simple Python Program!") ➞ True

check_title("Water is transparent") ➞ False

Notes

N/A

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Invert a List