We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Date and Time
- Calendar Module
- Discussions
Calendar Module
Calendar Module
Sort by
recency
|
636 Discussions
|
Please Login in order to post a comment
import calendar
m, d, y = input().split()
year = int(y) month = int(m) day = int(d)
week_day = calendar.weekday(year, month, day) week_name = calendar.day_name[week_day].upper()
print(week_name)
import calendar m, d, y = list(map(int, input().split())) day = ((calendar.weekday(y, m, d))) print((calendar.day_name[day]).upper())
The given input is in MM-DD-YYYY format