We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2db5ac0 commit 46ea47fCopy full SHA for 46ea47f
026_ifs.py
@@ -54,7 +54,10 @@
54
def is_first_of_the_month(day_number):
55
# Return "First of the month!" if the day number is 1.
56
# Return "Not first of the month" otherwise.
57
- pass
+ if day_number == 1:
58
+ return "First of the month!"
59
+ else:
60
+ return "Not first of the month"
61
62
check_that_these_are_equal(
63
is_first_of_the_month(1),
@@ -75,7 +78,11 @@ def has_five_chars(the_str):
75
78
# Return "STRING is five characters long" if the string
76
79
# is five characters long.
77
80
# Otherwise, return "Not five characters".
81
+ if len(the_str) == 5:
82
+ return f"{the_str} is five characters long"
83
84
+ return "Not five characters"
85
+
86
87
88
has_five_chars("ABCDE"),
0 commit comments