Fadil Nohur
May 28, 2021

map, filter and reduce aren't really considered Pythonic these days - so much so that Guido initially considered removing them from Python 3. For map and filter, you should use a list comprehension instead; and for reduce, most situations where you might want to use it (e.g. addition, multiplication, set operations) are already been covered by dedicated functions anyway.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Fadil Nohur
Fadil Nohur

No responses yet

Write a response