I need my program to take an input like: "hello there. my name is Bob" and the output to be "Hello there. My name is Bob". Currently it will convert the first letters to uppercase but then also change all others to lower case
def CapitalizeSentence(sentenceInput):
periodIndexNumber = sentenceInput.find(". ")
print(sentenceInput[0:(periodIndexNumber) + 1].capitalize() + " " + sentenceInput[(periodIndexNumber) + 2:].capitalize() )
sentenceInput = input("Enter sentences to be modified: ")
CapitalizeSentence(sentenceInput)