Friday 15 July 2016

Python: Calendar: day_name: get day names of the week


calendar.day_name returns an array that contains the days of the week in the current locale.
>>> import calendar
>>> for day in calendar.day_name :
...     print(day)
... 
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday


Previous                                                 Next                                                 Home

No comments:

Post a Comment