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, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 23.06.2019 23:40
Which of the following calculates the total from the adjacent cell through the first nonnumeric cell by default, using the sum function in its formula? -average -autosum -counta -max
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
Use the wrap text icon to modify which graphic appears in the front of layered images modify the picture effects change the way text is wrapped around an object apply wordart to the text
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, 22.01.2020 01:31
question
Mathematics, 22.01.2020 01:31
Questions on the website: 13722363