Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
map lambda list
#python 3.5.2 def square(a): return a*a list1=[square] for i in range(5): val=list (map(lambda x:x(i),list1)) print(val) def fourista(a): return a*a*a*a list2=[fourista] for i in range(5): val2=list (map(lambda x:x(i),list2)) print(val2) print("new") def sq(a): return a*a num=[2,3,4,5,6,7,8] square=(list(map(sq,num))) print(square)
run
|
edit
|
history
|
help
0
test1.py
Emails_Python
Decimal, Octal, Hexadecimal and Binary Format
Pej
Search element in a matrix
Organizing Transactions
short hand if else
Lab_I_1_25_11_2020
Short python input
Counting