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

 

konstans@stuy.edu all > myCapitalize
prev  |  next  |  chance

Recreate the string method capitalize(). Do NOT use the built in capitalize command. The first character should be upper case, all of the the rest should be lower case. You may use the string methods upper() and lower().


myCapitalize('abby') → 'Abby'
myCapitalize('FISH!') → 'Fish!'
myCapitalize('123') → '123'

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

def myCapitalize(s):

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