NameError: name ‘reduce’ is not defined in Python

It was moved to functools.

Leave a Comment