File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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**
Original file line number Diff line number Diff 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 %}}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ draft = false
55weight = 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.
99However, ` reverse ` does not affect the digits or characters * within* those
1010elements.
1111
You can’t perform that action at this time.
0 commit comments