Python is completely dependent on indentation, the rest of the lines after the first aren’t interpreted as being part of the reducetext function the way you have it there so why would it add a colon?
Like I’ve seen said elsewhere: You need to still have to know how write code in the first place.
