why this doesn't work? 😐 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
1st Jun 2020, 11:29 AM
shahnawaz
shahnawaz - avatar
3 Answers
+ 5
import calendar for i in range(1,13): print(calender.month(2021,i)) Snall spelling mistake Use a instead of e
2nd Jun 2020, 9:03 AM
Coder
Coder - avatar
+ 2
Typo in calendar. Give indentation. import calendar for i in range(1,13): print(calendar.month(2021,i))
1st Jun 2020, 11:49 AM
Avinesh
Avinesh - avatar
+ 1
There is no module with name calender Also you have given no indentation after for loop
1st Jun 2020, 11:44 AM
Abhay
Abhay - avatar