C1_W1_Lab 5: Where is 100.000 come from?

Why does i < 100.000 while num_iters is only 10.000, this means i running from 1 to 10.000 and never reaching 100.000

Thanks in advance

Hi @Nhat_Minh ,

In Python, unless is specified, i starts from 0.

1 Like

The check on i within the function prevents anyone from modifying the code in cell [10] and potentially hogging too much of Coursera Labs resources. That’s what “resource exhaustion” refers to.

1 Like