id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

double


x is a string. Complete the function so that it returns a string that is identical to the parameter except that each letter has been repeated twice.


double('dog') → 'ddoogg'
double('computer') → 'ccoommppuutteerr'
double('9031') → '99003311'

...Save, Compile, Run (ctrl-enter)

def double( x ):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 150

Copyright Nick Parlante 2017 - privacy