[Solved] Method which would prompt the user for input and then output that same input, replacing each space with three periods (…) [closed]
expandtabs() is used for setting the tab size and not replacing the spaces. However, you can use str.replace() to replace any given substring with another. txt = input(“Please type in your text here “) txt = txt.replace(‘ ‘, ‘…’) print(txt) solved Method which would prompt the user for input and then output that same input, … Read more