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

 

timggc@ggc.edu > wordRepeater
prev  |  next  |  chance

Create a function that repeats a given word n-times


wordRepeater('hp', 1) → 'hp'
wordRepeater('lg', 2) → 'lglg'
wordRepeater('sam', 3) → 'samsamsam'

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

def wordRepeater(word,n):

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

Copyright Nick Parlante 2017 - privacy