On 07/10/12 00:19, Richard D. Moores wrote:
That "1" means Tuesday, right? But how can I use calendar to print out
that word, "TUESDAY"?
days = ("Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday")
print '2014/2/18 is: ', days[calendar.weekday(2014, 2, 18)]
HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor