Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Correct Sentence by rodka81
def correct_sentence(text: str) -> str:
"""
returns a corrected sentence which starts with a capital letter
and ends with a dot.
"""
res = list(text)
res[0] = res[0].upper()
if res[-1] != '.':
res.append('.')
return ''.join(res)
Aug. 28, 2018
Comments: