You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import datetime
|
|
from datetime import datetime
|
|
monday1 = 0
|
|
months = range(1,13)
|
|
for year in range(2015, 2017):
|
|
for month in months:
|
|
if datetime(year, month, 1).weekday() == 0:
|
|
monday1 += 1
|
|
print(monday1) |