map function 2
This commit is contained in:
parent
695b2fd6fc
commit
504df882f5
5
python-temel/map.function.2.py
Normal file
5
python-temel/map.function.2.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
import math
|
||||
|
||||
a = [1, 2, 3, 4, 5]
|
||||
b = list(map(math.sqrt, a))
|
||||
print(b)
|
Loading…
Reference in New Issue
Block a user