Possible Duplicate:
How do I tell Python to convert integers into words
I'm trying to write a simple function that takes an input as an integer, and then displays it as the word. I'm not sure how to word this problem correctly. This is for a clock app, and this is what I'm doing, but I'm sure there is an easier way out there.
if h == 1: h = "One"
if h == 2: h = "Two"
if h == 3: h = "Three"
if h == 4: h = "Four"
if h == 5: h = "Five"
if h == 6: h = "Six"
if h == 7: h = "Seven"
if h == 8: h = "Eight"
if h == 9: h = "Nine"
if h == 10: h = "Ten"
if h == 11: h = "Eleven"
if h == 12: h = "Twelve"
Can someone show me an easier way to do this.