How to print calendar using python

Day 2 | Project 2

 Python code to print calendar 🗓️


Hello there. I'm Prince. I started coding in 2022 and now, I can write different codes. 


In this quick tutorial, I’ll show you how to print calendar using Python. It’s simple, it’s fast, and it’s easy.

Here is the python code to print calendar.

#Python code to print calendar

    #@code_with.nick

import calendar 

year=2023

month=2

x=calendar.month(year,month)

print(x)




Output:


That's all. You can print month of any year using this code. You can also take user input for year and month.


This article is complete. Hope you like this code trick. Please follow us on Instagram: @code_with.nick

Thankyou.

Comments

Popular posts from this blog

How to draw Bike using Python Turtle

How to make screensaver using Python Turtle

How to draw Broken Heart using Python