Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d6dab77f2b
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.417 kb
phrase = "bow ties are cool"
# show the phrase unmodified.
print "Unmodified Phrase", phrase
#Using a string method to title case
print "Title Case: ", phrase.title()
print "Phrase has not changed", phrase
# Lets do some string replacement
phrase = phrase.replace('bow', 'neck')
print "Modified the phrase:", phrase
# Python also has built in functions that help with strings.
print "Phrase lenght:", len(phrase)
Jump to Line
Something went wrong with that request. Please try again.