String method: to a title : String toTitle « String « Python
- Python
- String
- String toTitle
String method: to a title

quote = "Python is easy to use."
print "Original quote:"
print quote
print "\nAs a title:"
print quote.title()
print "\nOriginal quote is still:"
print quote
Related examples in the same category