NameError: name ‘reduce’ is not defined in Python October 10, 2022 by Tarik It was moved to functools.