filter / map... What happened with reduce() ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 5

filter / map... What happened with reduce() ?

Apparently the reduce() function does not exist in python 3.x.. if it works in Python 2.7??

19th Mar 2017, 5:23 AM
Javier I. Rivera R.
Javier I. Rivera R. - avatar
2 Respostas
+ 8
from functools import reduce
19th Mar 2017, 7:01 AM
Burey
Burey - avatar
+ 2
ok .. not eliminated, now it is not global but is in a library https://code.sololearn.com/cekXLEj6M9oH/?ref=app
19th Mar 2017, 6:01 PM
Javier I. Rivera R.
Javier I. Rivera R. - avatar