[Tutor] Through a glass, darkly: the datetime module

Alan Gauld alan.gauld at btinternet.com
Sun Oct 7 01:35:58 CEST 2012

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",

print '2014/2/18 is: ', days[calendar.weekday(2014, 2, 18)]


Alan G
Author of the Learn to Program web site

More information about the Tutor mailing list