Naive solution in Clear category for Correct Sentence by obone
def correct_sentence(text: str) -> str:
returns a corrected sentence which starts with a capital letter
and ends with a dot.
return text.upper() + text[1:] + ('' if text[-1] == '.' else '.')
Aug. 28, 2019