day of the week of 2018 by mypetlion

from datetime import*
c=date(2018,1,4+' F S'.find(input()[0]))
m=0
exec("m+=c.day<8;print(('\\n%02d:'[m<2:]%m)*(c.day<8),end=' %02d'%c.day);c+=timedelta(7);"*52)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page