[Python] I'm stuck on a certain method...

Flippantly

Newbie
Joined
Jun 7, 2022
Messages
1
Reaction score
0
I'm still new to python and I was on a website that gives quizzes. This was one of the questions "In a file called playback.py, implement a program in Python that prompts the user for input and then outputs that same input, replacing each space with ... (i.e., three periods)." I don't have any idea on which method to use for this. Example of the output would be "Hello...lorem...ipsum" something like this.


Flippantly
 
What have you done so far?

Do already have a piece of code?
 
I don't know if I'm supposed to believe about the whole quiz deal but it's very easy to do.

Python:
print(input('Insert text:').replace(' ', '...'))
 
Back
Top