Python program to find the first day of given year
Given a year as input, write a Python to find the starting day of the given year. We will use the Python datetime library in order to solve this problem.
Input : 2010 Output :Friday
Input :2019 Output :Tuesday
Below is the implementation:
Starting day of year 2010 is Friday
Time Complexity: O(1)
Space Complexity: O(1)