I'm trying to solve a problem where a for in range loop goes over a sentence and capitalises every letter following a ".", a "!" and a "?" as well as the first letter of the sentence. For example,
welcome! how are you? all the best!
would become
Welcome! How are you? All the best!
i've tried using the len
function, but I'm struggling with how to go from identifying the placement of the value to capitalising the next letter.