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 4664eae commit 231169bCopy full SHA for 231169b
0009-If-Else-Elif/if_else_elif.py
@@ -23,6 +23,17 @@
23
print("You should be admitted to the Adult Department.")
24
print(f"======================================================")
25
26
+print(f"If-else-with-multiple-lines-example")
27
+print(f"Hospital admission when the age is {AGE}")
28
+
29
+if AGE <= 18:
30
+ print(f"Your age is {AGE}.")
31
+ print("You should be admitted to the Pediatric Department.")
32
+else:
33
34
+ print("You should be admitted to the Adult Department.")
35
+print(f"======================================================")
36
37
print("if-elif-else example")
38
39
print("elif = else if")
0 commit comments