Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
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[0].upper() + text[1:] + '.'*(not text.endswith('.'))
July 14, 2018
Comments: