DEV Community

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

Collapse
 
xtofl profile image
xtofl

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:
dev.to/xtofl/tuple-reveals-your-in...

Collapse
 
bl4ckst0n3 profile image
Enes Karataş

thanks for the response ! :)