On 07/10/12 12:08, Richard D. Moores wrote:
On Sat, Oct 6, 2012 at 4:42 PM, Mark Lawrence<breamore...@yahoo.co.uk>  wrote:

Use calendar.day_name.

How?

By reading the Fine Manual.

http://docs.python.org/library/calendar.html#calendar.day_name

which is so short that I can copy it here:

calendar.day_abbr
    An array that represents the abbreviated days of the week in
    the current locale.


Like other arrays, lists, tuples etc., you use it by getting the
item at position n:

py> import calendar
py> calendar.day_name[1]
'Tuesday'



--
Steven
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to