#!/usr/bin/python
print "Content-type:text/html\n\n"
html = "<div>Life is what happens when you're busy making other plans.</div>"
quote = "Money can't buy life."
print "<DOCTYPE html><html lang='en'><head></head><body>";
#string methods
print quote.capitalize() + "<br>"
print quote.isalnum()
print html.replace("div", "h1")
print quote.replace("life", "happiness") + "<br>"
print str(html.find('what')) + "<br>"
words = quote.split(" ")
print words
parts = quote.split("buy")
parts = ' * '.join(parts) #list becomes a string
print "<div style='margin:10px;color:maroon; font-size:1.5em;'>" + parts + "</div>"
print "</body></html>"