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

 

jacobtkeio@gmail.com > capslock
prev  |  next  |  chance

Given a string of words separated by spaces, capitalize the first letter of each and make the rest lower case


capslock('HELLO w o r l d') → 'Hello W O R L D'
capslock(' This Is Not Grammatically Correct') → ' This Is Not Grammatically Correct'
capslock('i like CHEESE') → 'I Like Cheese'

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

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

Difficulty: 120

Copyright Nick Parlante 2017 - privacy