Commit 329cb0e
Changed files (3)
assignments
assignments/4/main.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+
+first = 3
+second = 5
+if first < second:
+ print("second is bigger")
+else:
+ print("but this time ")
+print("first is bigger")
assignments/4-solution.md
@@ -7,6 +7,18 @@ There are no chapter end exercises for Chapter 9.
Chapter 10:
+> 9. In Python, indentation is used to indicate the extent of a block of code. What is the output of the following Python code?
+
+```python
+!include assignments/4/main.py
+```
+
+```bash
+$ python assignments/4/main.py
+second is bigger
+first is bigger
+```
+
Chapter 11:
Chapter 12:
3431709-assignment-4.pdf
Binary file