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

 

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

You are going to add a certain number of the character 'a' to the end of a string. For example, for the input 5, you will add five 'a' chars to a string. ( "Sparta" -> "Spartaaaaaa")


getShoutingString('Sparta', 5) → 'Spartaaaaaa'
getShoutingString('Gonna', 3) → 'Gonnaaaa'
getShoutingString('Ya', 10) → 'Yaaaaaaaaaaa'

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

def getShoutingString(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