Skip to content

Commit 6c6f22c

Browse files
authored
Update README.md
1 parent 308dde6 commit 6c6f22c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
# `13.1` Filter list
22

3-
This is another example using `filter()` list in python.
3+
This is another example using `filter()` list in Python.
44

55
For example, this algorithm filters the `all_numbers` list and returns a new list with only the odds numbers:
66

77
```py
88
all_numbers = [23,12,35,5,3,2,3,54,3,21,534,23,42,1]
99

10-
def my_function(numb):
11-
return numb % 2 == 0
10+
def my_function(number):
11+
return number % 2 == 0
1212

1313
odd_numbers = list(filter(my_function, all_numbers))
1414
print(odd_numbers)
1515
```
1616

1717
## 📝 Instructions:
1818

19-
1. Complete the code to make it fill the `resulting_names` list with only the names that start with letter R.
19+
1. Complete the code to make it fill the `resulting_names` list with only the names that start with the letter "R".
2020

2121
2. Use the `filter()` function.
2222

23-
## Expected result:
23+
## 💻 Expected result:
2424

2525
```py
26-
The console expected:
2726
['Romario', 'Roosevelt']
2827
```

0 commit comments

Comments
 (0)