My program is to return the string repeated n times separated by the string delim. example repeat("ho",3,",").
def repeat():
string=input("enter a string:")
n=int(input("enter how many times to repeat:"))
delim=(",")
return string,n,delim
print (repeat())
I need to change the output to (hi,hi,hi) instead of this.
enter a string:hi
enter how many times to repeat:3
('hi', 3, ',')