Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Elementary- Correct Sentence solution in Clear category for Correct Sentence by tutek1
def correct_sentence(str):
text = "" #creates a variable that we use for the result
str = list(str) #converts the string into a list for simpler use
str[0] = str[0].upper() #makes the first letter of the string uppercase
if "." not in str: #if the string doesnt contain a dot
str += "." #it adds a dot at the end
str = "".join(str) #converts the list back into a string
return str
July 2, 2019