Check If It's a Title String

Published by Matt in

Check if a string str 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 Ruby Program!") ➞ true

check_title("Water is transparent") ➞ false

Notes

N/A

Watch a quick demo on how Edabit works.