From a11564b2bbf83a2488b51d2fb783f76c0cb1f1e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A9adbh=20Mc=20Collum?=
<57493169+MMacCollum@users.noreply.github.com>
Date: Mon, 14 Jul 2025 10:02:39 +0100
Subject: [PATCH 1/6] Create what_is_the_result_lvl_2.md
---
solutions/hello_world/what_is_the_result_lvl_2.md | 1 +
1 file changed, 1 insertion(+)
create mode 100644 solutions/hello_world/what_is_the_result_lvl_2.md
diff --git a/solutions/hello_world/what_is_the_result_lvl_2.md b/solutions/hello_world/what_is_the_result_lvl_2.md
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/solutions/hello_world/what_is_the_result_lvl_2.md
@@ -0,0 +1 @@
+
From 776ed69105adfa6e2f493e9354c6928b9533b146 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A9adbh=20Mc=20Collum?=
<57493169+MMacCollum@users.noreply.github.com>
Date: Mon, 14 Jul 2025 10:05:06 +0100
Subject: [PATCH 2/6] Update what_is_the_result_lvl_2.md
Added outine to solutions
---
solutions/hello_world/what_is_the_result_lvl_2.md | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/solutions/hello_world/what_is_the_result_lvl_2.md b/solutions/hello_world/what_is_the_result_lvl_2.md
index 8b13789..6d9f048 100644
--- a/solutions/hello_world/what_is_the_result_lvl_2.md
+++ b/solutions/hello_world/what_is_the_result_lvl_2.md
@@ -1 +1,8 @@
+## What is the result? - Level 2
+1. What is the result of each of the following statements? Explain why.
+
+ * `"" == " "` -
+
+ * `'two' > 'three'` -
+ * `[] == []` -
From c091a37e9b8231b0cc7ae434d45dd1c784ad52ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A9adbh=20Mc=20Collum?=
<57493169+MMacCollum@users.noreply.github.com>
Date: Mon, 14 Jul 2025 10:49:05 +0100
Subject: [PATCH 3/6] Update what_is_the_result_lvl_2.md
Added answers and explanations to the exercise
---
solutions/hello_world/what_is_the_result_lvl_2.md | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/solutions/hello_world/what_is_the_result_lvl_2.md b/solutions/hello_world/what_is_the_result_lvl_2.md
index 6d9f048..06cc5d1 100644
--- a/solutions/hello_world/what_is_the_result_lvl_2.md
+++ b/solutions/hello_world/what_is_the_result_lvl_2.md
@@ -2,7 +2,12 @@
1. What is the result of each of the following statements? Explain why.
- * `"" == " "` -
+ * `"" == " "` - False
+ The space between double quotations is whitespace sensitive. The left side corresponds to an empty string of no characters while the right side corresponds to a single whitespace element
- * `'two' > 'three'` -
- * `[] == []` -
+ * `'two' > 'three'` - True
+ The values being compared here are of a type `string`, so the comparison operator will perform an element-wise comparison of each character in each of the items using their unicode order. For the first element, `'t'` and `'t'` are compared and found to be equal. Next, the second values, `'w'` and `'h'` are compared. And since the unicode value of `'w'` is higher than that of `'h'`, python will halt the comparison there and return the comparison as `True`
+
+
+ * `[] == []` - True
+ This is a comparison of two empty lists, and since the types are the same and both have no elements, they are equated to be the same
From ef4b6fe53ecd2191644d557a8e39613e70859b32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A9adbh=20Mc=20Collum?=
<57493169+MMacCollum@users.noreply.github.com>
Date: Mon, 14 Jul 2025 10:50:28 +0100
Subject: [PATCH 4/6] Update what_is_the_result_lvl_2.md
Corrected line breaks
---
solutions/hello_world/what_is_the_result_lvl_2.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/solutions/hello_world/what_is_the_result_lvl_2.md b/solutions/hello_world/what_is_the_result_lvl_2.md
index 06cc5d1..3a9936c 100644
--- a/solutions/hello_world/what_is_the_result_lvl_2.md
+++ b/solutions/hello_world/what_is_the_result_lvl_2.md
@@ -2,12 +2,12 @@
1. What is the result of each of the following statements? Explain why.
- * `"" == " "` - False
+ * `"" == " "` - False \
The space between double quotations is whitespace sensitive. The left side corresponds to an empty string of no characters while the right side corresponds to a single whitespace element
- * `'two' > 'three'` - True
+ * `'two' > 'three'` - True \
The values being compared here are of a type `string`, so the comparison operator will perform an element-wise comparison of each character in each of the items using their unicode order. For the first element, `'t'` and `'t'` are compared and found to be equal. Next, the second values, `'w'` and `'h'` are compared. And since the unicode value of `'w'` is higher than that of `'h'`, python will halt the comparison there and return the comparison as `True`
- * `[] == []` - True
+ * `[] == []` - True \
This is a comparison of two empty lists, and since the types are the same and both have no elements, they are equated to be the same
From 51361a5623182715589f879d51859fcb160c9255 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A9adbh=20Mc=20Collum?=
<57493169+MMacCollum@users.noreply.github.com>
Date: Mon, 14 Jul 2025 10:56:29 +0100
Subject: [PATCH 5/6] Update README.md
Added the url link to the readme table
---
README.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 194e955..135667b 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,8 @@
| Hello World! | [Exercise](exercises/hello_world/hello_world.md) | Solution](solutions/hello_world/hello_world.md | |
| Python Characteristics | [Exercise](exercises/hello_world/python_characteristics.md) | [Solution](solutions/hello_world/python_characteristics.md) | |
| What is the result? - Level 1 | [Exercise](exercises/hello_world/what_is_the_result_lvl_1.md) | [Solution](solutions/hello_world/what_is_the_result_lvl_1.md) | |
-| What is the result? - Level 2 | [Exercise](exercises/hello_world/what_is_the_result_lvl_2.md) | | |
+| What is the result? - Level 2 | [Exercise](exercises/hello_world/what_is_the_result_lvl_2.md) | [Solution]
+(solutions/hello_world/what_is_the_result_lvl_2.md) | |
## Objects & Data Types
@@ -1644,4 +1645,4 @@ def home():
return 'main website'
app.add_url_rule('/', view_func=home)
-```
\ No newline at end of file
+```
From b25fbe74451f823174dd0c41b61261cc042c1434 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A9adbh=20Mc=20Collum?=
<57493169+MMacCollum@users.noreply.github.com>
Date: Mon, 14 Jul 2025 11:00:21 +0100
Subject: [PATCH 6/6] Update README.md
Corrected some markdown table issues
---
README.md | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 135667b..0b8646a 100644
--- a/README.md
+++ b/README.md
@@ -71,11 +71,10 @@
|Name|Objective & Instructions|Solution|Comments|
|--------|--------|------|----|
-| Hello World! | [Exercise](exercises/hello_world/hello_world.md) | Solution](solutions/hello_world/hello_world.md | |
+| Hello World! | [Exercise](exercises/hello_world/hello_world.md) | [Solution](solutions/hello_world/hello_world.md | |
| Python Characteristics | [Exercise](exercises/hello_world/python_characteristics.md) | [Solution](solutions/hello_world/python_characteristics.md) | |
| What is the result? - Level 1 | [Exercise](exercises/hello_world/what_is_the_result_lvl_1.md) | [Solution](solutions/hello_world/what_is_the_result_lvl_1.md) | |
-| What is the result? - Level 2 | [Exercise](exercises/hello_world/what_is_the_result_lvl_2.md) | [Solution]
-(solutions/hello_world/what_is_the_result_lvl_2.md) | |
+| What is the result? - Level 2 | [Exercise](exercises/hello_world/what_is_the_result_lvl_2.md) | [Solution](solutions/hello_world/what_is_the_result_lvl_2.md) | |
## Objects & Data Types