Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions data/part-4/3-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ Notice how the method modifies the list itself. Sometimes we don't want to chang

```python
my_list = [2,5,1,2,4]
print(sorted(my_list)))
print(sorted(my_list))
```

<sample-output>
Expand Down Expand Up @@ -652,7 +652,7 @@ Please write a function named `mean`, which takes a list of integers as an argum

```python
my_list = [1, 2, 3, 4, 5]
result = mean(my_list))
result = mean(my_list)
print("mean value is", result)
```

Expand All @@ -671,7 +671,7 @@ Please write a function named `range_of_list`, which takes a list of integers a

```python
my_list = [1, 2, 3, 4, 5]
result = range_of_list(my_list))
result = range_of_list(my_list)
print("The range of the list is", result)
```

Expand Down