Write a python program to find the first day of given year Danger note : Spammers stay away Question for only Python coders
Answers
Answered by
1
# This code is given by RockstarPratheek (@Brainly.in)
import datetime
def Startingday(year):
# Creating an object for 1st January of that particular year
# For that we are passing three argument (1) year (2) month
# i.e 1 for january (3) date i.e 1 for starting day of
# that particular year
a = datetime.datetime(year, 1, 1)
# for printing Startingday of a particular year
# we are using a.strftime("% A")
print("Starting day of year ", year, " is ", a.strftime("%A"))
# Driver Code
year = int(input("Enter a year : "))
Startingday(year)
#Code by Pratheek
Answered by
2
For Your Answer U Can Refer To Image.
There are two attachments.
It Is Verified And Checked.
Hope it helps you dear......xD
Attachments:
Similar questions
Math,
3 months ago
Math,
3 months ago
Social Sciences,
3 months ago
Math,
7 months ago
Physics,
7 months ago
Chemistry,
11 months ago
Political Science,
11 months ago