HackerRank Python - Calendar Module

Calendar Module
The calendar module allows you to output calendars and provides additional useful functions for them.

class calendar.TextCalendar([firstweekday])

This class can be used to generate plain text calendars.

  1. # Enter your code here. Read input from STDIN. Print output to STDOUT
  2. import datetime
  3. import calendar
  4. m, d, y = map(int, input().split())
  5. input_date = datetime.date(y, m, d)
  6. print(calendar.day_name[input_date.weekday()].upper())
Please click on the like button if it worked

Solution not working or have any suggestions? Please send an email to [email protected]

donate a cup of tea :)

Join Our Facebook Group

Share this solution


Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube