In Java, the FOR loop syntax offers a place where we can add a condition. For instance, in the below code the condition is i*j < n
for (i=0; i*j < n; i++)
{ ... }
In Python, how can we add such condition in the for loop statement?
for i in range(n):
I know that we can add an if statement inside the for loop, but I am concerned that it will increase the run time to O(n). Please advice.