Skip to content

Commit 3940d5a

Browse files
committed
Create solution for "Check if age is within values"
1 parent 0e50ab7 commit 3940d5a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

school.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
def main():
2+
age = int(input("Age: "))
3+
if age > 17 or age < 5:
4+
print("Not in school")
5+
elif age >= 15:
6+
print("High school")
7+
elif age >= 11:
8+
print("Middle school")
9+
else:
10+
print("Junior school")
11+
12+
13+
if __name__ == "__main__":
14+
main()

0 commit comments

Comments
 (0)