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.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Apply
  • Hiring developers?
  1. Prepare
  2. Python
  3. Date and Time
  4. Calendar Module
  5. Discussions

Calendar Module

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • babun012378910
    5 months ago+ 0 comments

    Enter your code here. Read input from STDIN. Print output to STDOUT

    import calendar import datetime date_time = input().split() month = date_time[0] day = date_time[1] year = date_time[2]

    day_number = calendar.weekday(int(year), int(month), int(day)) day_name = calendar.day_name[day_number] print(day_name.upper())

    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy