Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Correct Sentence by vitproff
def correct_sentence(text: str) -> str:
"""
returns a corrected sentence which starts with a capital letter
and ends with a dot.
"""
if text[-1] != '.':
text += '.'
if not text[0].isupper():
text = text[0].upper() + text[1:]
return text
May 1, 2020