text = input('Please enter some text: ') text = text.replace(' ', '...') print(text)