Sort by

recency

|

664 Discussions

|

  • + 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())
    
  • + 0 comments
    import calendar
    l = tuple(map(int, input().split(" ")))
    print(calendar.day_name[calendar.weekday(l[2], l[0], l[1])].upper())
    
  • + 0 comments
    import calendar
    
    m, d, y = map(int, input().split(" "))
    
    day = calendar.weekday(y, m , d)
    
    print(calendar.day_name[day].upper())
    
  • + 0 comments

    try this for python solution it is very easy

    import datetime m,d,y=map(int,input().split()) x=datetime.datetime(y,m,d) y=x.strftime("%A") print(y.upper())