Aug-07-2019, 12:40 PM
The difference is that in the first case the function
generator_type()
is called for every index in the loop for i in ramge...
while in the second case it is called only once.