Hello coders, today we are going to solve Calendar Module in Python Hacker Rank Solution.
The calendar module allows you to output calendars and provides additional useful functions for them.
This class can be used to generate plain text calendars.
You are given a date. Your task is to find what the day is on that date.
A single line of input containing the space separated month, day and year, respectively, in MM DD YYYY format.
2000 < year < 3000
Output the correct day in capital letters.
08 05 2015
The day on August 5th 2015 was WEDNESDAY.
Solution – Calendar Module in Python – Hacker Rank Solution
# Enter your code here. Read input from STDIN. Print output to STDOUT 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())
Disclaimer: The above Problem (Calendar Module in Python) is generated by Hacker Rank but the Solution is provided by CodingBroz. This tutorial is only for Educational and Learning purpose.