From fcef9e71f59de8ba1c158f7c30ebcaaa5cf13603 Mon Sep 17 00:00:00 2001 From: Ram Patel <72255310+Ramptl@users.noreply.github.com> Date: Tue, 19 Oct 2021 15:43:43 +0530 Subject: [PATCH 1/2] Create Calendar.py --- Programs/Calendar.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Programs/Calendar.py diff --git a/Programs/Calendar.py b/Programs/Calendar.py new file mode 100644 index 0000000..4819dbb --- /dev/null +++ b/Programs/Calendar.py @@ -0,0 +1,7 @@ +import calendar +# Enter the month and year +yy = int(input("Enter year: ")) +mm = int(input("Enter month: ")) + +# display the calendar +print(calendar.month(yy,mm)) From 9f0c955117690bd396dae14d810f8ccdd63e6479 Mon Sep 17 00:00:00 2001 From: Ram Patel <72255310+Ramptl@users.noreply.github.com> Date: Sun, 24 Oct 2021 20:30:49 +0530 Subject: [PATCH 2/2] Update Calendar.py Print Calendar of Provided Month by User. --- Programs/Calendar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Programs/Calendar.py b/Programs/Calendar.py index 4819dbb..e1b2535 100644 --- a/Programs/Calendar.py +++ b/Programs/Calendar.py @@ -1,7 +1,7 @@ import calendar -# Enter the month and year -yy = int(input("Enter year: ")) +# Enter the year +yy = int(input("Enter year: ")) +# Enter the month mm = int(input("Enter month: ")) - -# display the calendar +# display the calendar print(calendar.month(yy,mm))