Short & sweet. solution in Clear category for Correct Sentence by HeNeArKr
def correct_sentence(text: str) -> str:
Returns a corrected sentence which starts with a capital letter
and ends with a dot.
# Just a return statement
return text.upper() + text[1:] + '.'*(not text.endswith('.'))
July 14, 2018