avatar Bite 234. Capitalize sentences

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!

Login and get coding
go back Intermediate level
Bitecoin 3X

117 out of 120 users completed this Bite.
Will you be Pythonista #118 to crack this Bite?
Resolution time: ~49 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 3.86 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.