Capitalize First Letter Problem
Capitalize First Letter Problem — ExecCode School DSA Practice
Solve the Capitalize First Letter problem on ExecCode. Free online school DSA practice in Strings - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a sentence with many words. Your task is to make the first letter of every single word in the sentence a capital letter. Then, print the new sentence.
Examples
Input hello world; Output Hello World. Input a quick brown fox; Output A Quick Brown Fox
Constraints
1 <= len(S) <= 10^4
Practice Capitalize First Letter free on ExecCode. Browse DSA problems, topic map, and placement guides.