9 lines
252 B
Python
9 lines
252 B
Python
|
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)
|