Skip to content

Commit e2be117

Browse files
committed
TR updates, first round
1 parent 1bbb2e0 commit e2be117

File tree

1 file changed

+3
-3
lines changed
  • string-concatenation-python

1 file changed

+3
-3
lines changed

string-concatenation-python/age.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
def age_group(age):
2-
if age >= 0 and age <= 9:
2+
if 0 <= age <= 9:
33
result = "a Child!"
4-
elif age > 9 and age <= 18:
4+
elif 9 < age <= 18:
55
result = "an Adolescent!"
6-
elif age > 18 and age <= 65:
6+
elif 19 < age <= 65:
77
result = "an Adult!"
88
else:
99
result = "a Golden ager!"

0 commit comments

Comments
 (0)