forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice > getRepeatingString
prev  |  next  |  chance

You are going to repeat a string a given number of times. For example, if the input string is "Friday" and the input int is 3, you will return "FridayFridayFriday"

getRepeatingString('Friday', 3) → 'FridayFridayFriday'
getRepeatingString('NeverGonna', 3) → 'NeverGonnaNeverGonnaNeverGonna'
getRepeatingString('Party', 5) → 'PartyPartyPartyPartyParty'

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

def getRepeatingString(word,num):

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