Skip to content

Commit eec60bb

Browse files
committed
changes
1 parent 4d90d86 commit eec60bb

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

08-lambda-function.ipynb

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,29 @@
3030
},
3131
{
3232
"cell_type": "code",
33-
"execution_count": null,
33+
"execution_count": 1,
3434
"metadata": {},
35-
"outputs": [],
35+
"outputs": [
36+
{
37+
"name": "stdout",
38+
"output_type": "stream",
39+
"text": [
40+
"[1, 2, 3, 4, 5, 6, 7, 8, 9]\n"
41+
]
42+
}
43+
],
3644
"source": [
37-
"#"
45+
"mylist =[1,2,3,4,5,6,7,8,9]\n",
46+
"even_list = list(filter(lambda x:(x%2==0),mylist))\n",
47+
"print(mylist)"
3848
]
49+
},
50+
{
51+
"cell_type": "code",
52+
"execution_count": null,
53+
"metadata": {},
54+
"outputs": [],
55+
"source": []
3956
}
4057
],
4158
"metadata": {

0 commit comments

Comments
 (0)