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

 

david.white@denison.edu cs111fall2019 > capitalize
prev  |  next  |  chance

Write a function captalize(word) that returns a version of the string word with the first letter capitalized. (Note that the word may already be capitalized!) You may assume word has at least 2 characters and begins with a letter.


capitalize('some string') → 'Some string'
capitalize('Nevermore') → 'Nevermore'
capitalize('uNDER tHE sEA') → 'UNDER tHE sEA'

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

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