Login
|
Signup
langref.org
-
python
add..
all
clojure
cpp
csharp
erlang
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
php
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Strings
Case
Capitalise the first letter of each word
Transform
"man OF stEEL"
into
"Man Of Steel"
python
from string import capwords
capwords("man OF stEEL")
from string import capwords
capwords("man OF stEEL")
python
2.4
' '.join(s.capitalize() for s in "man OF stEEL".split())
' '.join(s.capitalize() for s in "man OF stEEL".split())
python
"man OF stEEL".title()
"man OF stEEL".title()
Submit a new solution for
python
There are 31 other solutions in
additional
languages (
clojure
,
cpp
,
csharp
,
erlang
...)