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.isupper():
text = text.upper() + text[1:]
May 1, 2020