There was an error while loading. Please reload this page.
1 parent c2eb607 commit 2950396Copy full SHA for 2950396
exercises/13.1-Filter_and_list/solution.hide.py
@@ -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