subject

If you start from Jan 1st, 1757, and repeatedly add 8 days, until you hit 1800, how many times will it be a Monday?# YOUR CODE HERE def calcDays (): my_date = date(1757, 1, 1) m = 0 while my_date. year != 1800 : my_date = my_date + timedelta(days = 8) if my_date. isoweekday () == 1: m += 1 return in Make a function Once you have answered this question, convert your code into a generalized function. This function, call it count_weekdays should take: • start_date: a start date (a datetime object) • add_days : a number of days to add (an int) • stop_year: a stop year (an int) • weekday : a day to count, represented in isoweekday format (an int) It should return the number of weekday is that occur from the start date, until stop year, when adding add_days days.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:10
Drag each label to the correct location on the imagelist the do’s and don’ts of safeguarding your password.keep yourself loggedin when you leave your computer.don’t write your password down and leave it whereothers can find it.share your password with your friends.each time you visit a website,retain the cookies on your computer.use a long password with mixed characters.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
In he example code, what does the title attribute create? a tool tip an element a source a markup
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
You know the right answer?
If you start from Jan 1st, 1757, and repeatedly add 8 days, until you hit 1800, how many times will...
Questions
question
Mathematics, 31.07.2020 21:01
question
Mathematics, 31.07.2020 21:01
Questions on the website: 13722367