I had a go at this problem and got
def doub_char(string):
for i in string:
string2 = print(2*i)
return string2
doub_char("Money")
but this printed:
MM
oo
nn
ee
yy
instead of
"MMoonneeyy"
I had a go at this problem and got
def doub_char(string):
for i in string:
string2 = print(2*i)
return string2
doub_char("Money")
but this printed:
MM
oo
nn
ee
yy
instead of
"MMoonneeyy"