Back to Community
Question about the video: "Learning from the Experts Ep 1"

During the video learning from the experts at 22:00 minutes,

, Vendram has typed the following lines of code:

factors = make_factors()

result = None
for name, (f,w) in factors.items(): #.items() in Python 3.5
if result == None:
result = w*f(mask=universe)
result += w*f(mask=universe)

Can anybody explain me what does the "make_factors()" function do? And I wanted to know what are those parameters: "name", "(f,w)" actually mean? And in general, what is the main ideia when making this iteration process?

Would be grateful :)