DEV Community

loading...

Discussion on: #Day13 - Map, Filter, Sorted, and Reduce in Python

Collapse
aminnairi profile image
Amin

Hi Rahul and thanks for your article!

I guess you made a mistake here.

map(iterable, function)
Enter fullscreen mode Exit fullscreen mode

Isn't it the function first, and then the iterable?

map(function, iterable)
Enter fullscreen mode Exit fullscreen mode
Collapse
rahulbanerjee99 profile image
Rahul Banerjee Author

Hi Amin! Thanks for pointing it out! I will update it