Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/ex4.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,18 @@
#
# return 0;
# }

def month_num():
month = input("Enter month number(1-12): ")

match int(month):
case 1|3|5|7|8|10|12:
print(31)
case 4|6|9|11:
print(30)
case 2:
print("28/29")
case _:
print("Invalid input! Please enter month number between 1-12")

month_num()
Loading