Computer Science, asked by siahegde, 7 months ago

Write program to enter the days of the week and find out if it is weekday or holiday

Answers

Answered by licraushan
0

Explanation:

first mark as brainliest answer and say thanks to my answer then I will edit and give you the correct answer. I promise

Answered by Nishika20
1

Answer:

# Python program to Find day of  

# the week for a given date  

import datetime  

import calendar  

 

def findDay(date):  

   born = datetime.datetime.strptime(date, '%d %m %Y').weekday()  

   return (calendar.day_name[born])  

 

# Driver program  

date = '03 02 2019'

print(findDay(date))

Mark as brainliest answer

Similar questions