Skip to content

Commit 2950396

Browse files
authored
Create solution.hide.py
1 parent c2eb607 commit 2950396

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
all_names = ["Romario", "Boby", "Roosevelt", "Emiliy", "Michael", "Greta", "Patricia", "Danzalee"]
2+
3+
# Your code here
4+
5+
def filter_function(name):
6+
# Update here
7+
return name[0].lower() == "r"
8+
9+
resulting_names = list(filter(filter_function, all_names))
10+
11+
print(resulting_names)

0 commit comments

Comments
 (0)