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

 

22ckeith@athenian.org > str_repeat
prev  |  next  |  chance

Take a string and print that string n number of times.


str_repeat('hi', 5) → 'hihihihihi'
str_repeat(' ', 2) → ' '
str_repeat('yes_please ', 3) → 'yes_please yes_please yes_please '

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

def str_repeat(s, 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

Difficulty: 100

Copyright Nick Parlante 2017 - privacy