Skip to content

Commit

Permalink
Merge pull request Mrinank-Bhowmick#663 from sdthinlay/Calendar
Browse files Browse the repository at this point in the history
Enforce good coding practices according to PEP8 standard
  • Loading branch information
Mrinank-Bhowmick authored Dec 26, 2023
2 parents ca3ee22 + a1db132 commit 71efc19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,5 @@ dmypy.json
# Cython debug symbols
cython_debug/

*.db
*.db
.idea/
10 changes: 5 additions & 5 deletions projects/Calendar/displayCalendar.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Program to display calendar


def display_calendar(y, m):
def display_calendar(year, month):
import calendar

print(calendar.month(y, m))
print(calendar.month(year, month))


y = int(input("Enter year: "))
m = int(input("Enter month: "))
year = int(input("Enter year: "))
month = int(input("Enter month: "))

display_calendar(y, m)
display_calendar(year, month)

0 comments on commit 71efc19

Please sign in to comment.