Skip to content

Commit 6c1a2da

Browse files
committed
if else - Hospital admission example
1 parent ac99d40 commit 6c1a2da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

0009-If-Else-Elif/if_else_elif.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
"""
44

55
# if_else_elif.py
6+
7+
AGE = 40
8+
9+
print(f"Hospital admission when the age is {AGE}")
10+
if AGE <= 18:
11+
print("You should be admitted to the Pediatric Department.")
12+
else:
13+
print("You should be admitted to the Adult Department.")

0 commit comments

Comments
 (0)