summaryrefslogtreecommitdiff
path: root/misc/flow_control.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/flow_control.py')
-rw-r--r--misc/flow_control.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/flow_control.py b/misc/flow_control.py
new file mode 100644
index 0000000..df3e63e
--- /dev/null
+++ b/misc/flow_control.py
@@ -0,0 +1,11 @@
+# flow control
+
+# Practice question 9
+
+spam = 2
+if spam == 1:
+ print('Hello')
+elif spam == 2:
+ print('Howdy')
+else:
+ print('Greetings!')