Pybites Logo

Capitalize sentences

Level: Intermediate (score: 3)

In this Bite you are going to capitalize sentences in a block of lowercased text.

Correct grammar dictates that each sentence should start with a capital letter, so complete capitalize_sentences to do just that.

To make this a bit harder we have sentences ending with dot (.), question mark (?) and exclamation mark (!)

Have fun and code more Python!