<HTML><FONT FACE=arial,helvetica><FONT  SIZE=2 PTSIZE=10>Hello
<BR>
<BR>Does anyone have any idea on how i could simplify the following program by using strings?
<BR>
<BR># dateconvert2.py
<BR># &nbsp;&nbsp;&nbsp;Converts day month and year numbers into two date formats
<BR>
<BR>import string
<BR>
<BR>def main():
<BR> &nbsp;&nbsp;&nbsp;# get the day month and year
<BR> &nbsp;&nbsp;&nbsp;day, month, year = input("Please enter the day, month and year numbers: ")
<BR>
<BR> &nbsp;&nbsp;&nbsp;date1 = str(month)+"/"+str(day)+"/"+str(year)
<BR>
<BR> &nbsp;&nbsp;&nbsp;months = ["January", "February", "March", "April",
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"May", "June", "July", "August",
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"September", "October", "November", "December"]
<BR> &nbsp;&nbsp;&nbsp;monthStr = months[month-1]
<BR> &nbsp;&nbsp;&nbsp;date2 = monthStr+" " + str(day) + ", " + str(year)
<BR>
<BR> &nbsp;&nbsp;&nbsp;print "The date is", date1, "or", date2
<BR>
<BR>main()
<BR></FONT></HTML>