During the video learning from the experts at 22:00 minutes,
https://www.youtube.com/watch?v=7PyKtUvuHNU&t=1s
, 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)
else:
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 :)