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

 

appendLength


Create a function that takes a string and returns the string itself with the length of the string appended (don't forget the space to separate the two)


appendLength('hello') → 'hello 5'
appendLength('cashews') → 'cashews 7'
appendLength('premium') → 'premium 7'

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

def appendLength(msg):

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