Skip to content

Commit d8093fe

Browse files
authored
Update Month.py
1 parent f1b35a6 commit d8093fe

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

Number/Month.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1-
"""Month validation utility."""
2-
3-
41
def valid_month(month):
5-
"""
6-
Validate if a month number is between 1 and 12.
7-
8-
Args:
9-
month (int): Month number to validate
10-
11-
Returns:
12-
None: Prints validation result
13-
"""
142
if month > 0 and month < 13:
153
print("Valid month!")
164
else:
175
print("Invalid!")
186

19-
207
# Main program
218
valid_month(6)

0 commit comments

Comments
 (0)