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
  • 55,782
  • 14
  • 81
  • 108

0 Answers0