Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Correct Sentence by dx2-66
def correct_sentence(text: str) -> str:
"""
returns a corrected sentence which starts with a capital letter
and ends with a dot.
"""
# your code here
text = text[0].upper() + text[1:]
if text[-1] != '.':
text += '.'
return text
April 27, 2022
Comments: