Sunday, May 29, 2011

Python exercise: convert Strings

exercise:
print("Python exercise: String")

HelloString = "hEllO PYTHON!"
print(HelloString)

print ("capitalize(): " + HelloString.capitalize())
print ("title(): " + HelloString.title())
print ("upper():" + HelloString.upper())
print ("lower()" + HelloString.lower())


output:
Python exercise: convert Strings