Skip to content

Commit 66d4228

Browse files
committed
Corrected a couple technical issues, also addressed minor typos
1 parent 8938b80 commit 66d4228

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

content/functions/exercises/_index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,14 @@ You will find the starter code in `data-analysis-projects/functions/exercises/fu
116116
```
117117

118118
{{% expand "Check your solution" %}}
119-
119+
120120
```python {linenos=table}
121121
def make_rectangle(width, height):
122122
rectangle = ""
123123
for i in range(height):
124-
rectangle += (make_line(width) + "\n")
124+
rectangle += make_line(width)
125+
if i < height - 1:
126+
rectangle += "\n"
125127
return rectangle
126128

127129
print(make_rectangle(5, 3))
@@ -170,7 +172,7 @@ You will find the starter code in `data-analysis-projects/functions/exercises/fu
170172
specified number of hashes, followed again by `num_spaces` more spaces.
171173

172174
```python
173-
print(make_space_line(3, 5));
175+
print(make_space_line(3, 5))
174176
```
175177

176178
**Console Output**

content/functions/reading/function-output/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def count_to_n(n):
9191
if count > n:
9292
return
9393
print(count)
94-
count += count
94+
count += 1
9595
```
9696

9797
{{% /notice %}}

content/functions/studio/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ draft = false
55
weight = 3
66
+++
77

8-
The `reverse` list method flips the order of the elements within an list.
8+
The `reverse` list method flips the order of the elements within a list.
99
However, `reverse` does not affect the digits or characters *within* those
1010
elements.
1111

0 commit comments

Comments
 (0)