0

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"
khelwood
  • 52,115
  • 13
  • 74
  • 94

0 Answers0