DEV Community

Discussion on: Similar functions in JavaScript and Python

Collapse
 
ansegundo profile image
Alberto Segundo

In the first python map example, shouldn't it be:

 doubles = map(double, nums)

As in, function double, instead of variable doubles

Collapse
 
moz5691 profile image
Chan Ho Ahn

You're right... I have fixed it. Thank you!!!