DEV Community

Discussion on: Python map() Function: How to use map in python ?

xtofl profile image

Thanks for marketing map. Yes, map rocks. It is very idiomatic, for decades now, so I wish people stopped teaching for-loops to new programmers. Loops make messy code, really, that hides the intent in favor of showing the mechanism. They are not 'classic' but 'outdated' (in 90% of the cases).

Also, I would love if exemplary articles as this one would choose tuple in their examples. Especially in the context of map, lists are really overkill.

I want to pont to a recent article of mine that explains this:

bl4ckst0n3 profile image
Enes Karata┼č Author

thanks for the response ! :)