How To Build Future Calendar With Python

 FUTURE CALENDAR


Future Calendar is basically a simple calendar that has 12 months, But this future calendar tells us the date ,day of upcoming year like (2045)

FOR EXAMPLE:




The above example shows that how a future calendar works . The only thing we have to do is to enter the year and enter the month .



The above picture has the source code of the future calendar.

In line 1, we have imported the calendar module .
In line 2, we have used input function to enter the year , input function lets the user to input the year of the calendar. In the same line we have used int() function that lets the user to enter only interger value.
In line 4, we have used print() function to  print the given calendar according to given year and month.

Comments

Popular posts from this blog

How To Make Tic-Tac-Toe Game With Python

Use of functions in python