+ 1
"CHALLENGE" Create a 2018 Calendar
with icons
4 Antworten
+ 4
Wait I have to take time to code that
+ 4
https://code.sololearn.com/cWxb4aUXVUU6/?ref=app
generalised for any year. enter year to see calendar
+ 1
soo.. what exactly should this calculator so
+ 1
This code is copied from M T U Fernando (just added the input for year var) and do a great job. If run in sololearn playground it's ok. I tried the same on my installed Python (3.6.4) and got the "TypeError: 'int' object is not callable" error, can someone help me?
import calendar
year = input('give a year: ')
month = 1
while month <= 12:
print(calendar.month(year, month))
month += 1