Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
lambda list map
#python 3.5.2 def square(a): return a*a func1=[square] num=[2,3,4,5,6,7,8,9] for i in range(5): val=list (map(lambda x:x(i),func1)) print(val) def fourista(a): return a*a*a*a func2=[fourista] num2=[10,20,30,40,50] for i in range(5): val2=list (map(lambda x:x(i),func2)) print(val2)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Lesson#6
RANDOM NUMBER
lhp-1
Faiha - L6
Breadth-First Path Finding
Calculator
ok
contoh 3.1
Add missing names
Introduce myself
Please log in to post a comment.