Sort by

recency

|

667 Discussions

|

  • + 0 comments

    Could someone explain why the firstweekday is 6 in the sample code?

    print calendar.TextCalendar(firstweekday=6).formatyear(2015)
    
  • + 0 comments

    import calendar m,d,y=input().split(" ") print(calendar.day_name[calendar.weekday(int(y),int(m),int(d))].upper())

  • + 0 comments
    import calendar 
    m, d, y = map(int, input().split())
    print(calendar.day_name[calendar.weekday(y, m, d)].upper())
    
  • + 0 comments

    import datetime import calendar

    m, d, y = map(int, input().split()) input_date = datetime.date(y, m, d) print(calendar.day_name[input_date.weekday()].upper())

  • + 0 comments
    import calendar
    
    date = list(map(int, input().split()))
    print(calendar.day_name[calendar.weekday(date[2], date[0], date[1])].upper())