Capitalise each word
easyStrings10 XP
Words in s are separated by single spaces. Return s with the first letter of every word in capitals and the rest in lower case.
Examples
- Input: s = "hello world"Output: "Hello World"
- Input: s = "lEARN pYTHON tODAY"Output: "Learn Python Today"
Examples use JSON: true/false/null are True/False/None in Python.