+ 2

Working of calender

looking at the coding it seems very simple. coding is just about 3-4 lines but i have no idea how it works. can you please help me out. if you know its working mechanism then please let me know it 😃. It would be a great help by you.

17th Dec 2016, 12:54 PM
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎ - avatar
5 RĂ©ponses
+ 8
that is the beauty of modules. someone else does all the work, you import it, use it, and you've just done something with a few lines of code. calendar is included with standard python, which is why it works on here. if we could install any 3rd party module, you would see much more impressive code on here. i suppose it's fun to work within limitations though.
18th Dec 2016, 12:03 PM
Ahri Fox
Ahri Fox - avatar
+ 7
It works when you put it this way import calendar yy= mm= print(calendar.month(yy,mm))
17th Dec 2016, 1:10 PM
Salad
Salad - avatar
+ 3
You have to put the year that you wanna display then the month in 1-12 Range. Well Have Fun.
17th Dec 2016, 1:12 PM
Salad
Salad - avatar
+ 1
Thanks Individed 😃
17th Dec 2016, 1:54 PM
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎ - avatar
+ 1
#Ahri Fox haha yeah it is :) by the way, your way of expressing is wonderful
18th Dec 2016, 12:33 PM
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎
‎‏â€Ș‏â€ȘTarami Nishan‬‏‬‏‎ - avatar