Python Calendar Module. The following code shows how to show the day of a date using the python calendar module. This is the solution to the HackerRank Calendar Module Python collections problem.
Code:
import calendar
n1, n2, n3 = map(int, input().split())
print((calendar.day_name[calendar.weekday(n3, n1, n2)]).upper())
Test Input:
08 10 2015
Test Output:
MONDAY