Skip to content

Commit

Permalink
fixed a mistake in example usecase in Climbing areas exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudkat committed Aug 16, 2023
1 parent 142b366 commit 02d2668
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/part-12/1-functions-as-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ The exercise template contains the class definition for a `ClimbingRoute`. It wo

```python
route1 = ClimbingRoute("Edge", 38, "6A+")
route2 = ClimbingRoute("Smooth operator", 9, "7A")
route2 = ClimbingRoute("Smooth operator", 11, "7A")
route3 = ClimbingRoute("Synchro", 14, "8C+")


Expand All @@ -288,7 +288,7 @@ print(route3.name, route3.length, route3.grade)
<sample-output>

Edge, length 38 metres, grade 6A+
Smooth operator, length 9 metres, grade 7A
Smooth operator, length 11 metres, grade 7A
Synchro 14 8C+

</sample-output>
Expand Down Expand Up @@ -316,7 +316,7 @@ for route in sort_by_length(routes):
Edge, length 38 metres, grade 6A+
Synchro, length 14 metres, grade 8C+
Small steps, length 12 metres, grade 6A+
Smooth operator, length 9 metres, grade 7A
Smooth operator, length 11 metres, grade 7A

</sample-output>

Expand Down

0 comments on commit 02d2668

Please sign in to comment.