Sort by

recency

|

656 Discussions

|

  • + 0 comments

    The calendar module seems super handy for generating quick and easy text-based calendars! Bc game sign in

  • + 0 comments

    import calendar day = 5 month = 8 year = 2015 day_index = calendar.weekday(year,month,day) day_name = calendar.day_name[day_index].upper() print(day_name)

  • + 0 comments

    Here's my code:

    import calendar
    month, day, year = map(int, input().split())
    print(calendar.day_name[calendar.weekday(year, month, day)].upper())
    
  • + 0 comments

    import calendar month,date,year=(int(i) for i in input().split()) x = calendar.weekday(year,month,date) print(calendar.day_name[x].upper())

  • + 0 comments

    My approach for the problem. Using the calendar we can reduce our time and number of lines to code and futhermore leverage the inbuilt functions available to us.

    import calendar

    month , date , year =list(map(int,input().split())) x = calendar.weekday(year,month,date) print(calendar.day_name[x].upper())