Skip to content

Commit 0891d35

Browse files
Add files via upload
1 parent 04405e7 commit 0891d35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lambda.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
list1 = [1,2,3,4,5,6]
2+
s = list(map(lambda x:pow(x,2),list1))
3+
print(s)
4+
r = list(filter(lambda x:x%2==0 ,list1))
5+
print(r)

0 commit comments

Comments
 (0)