I have a problem
https://docs.python.org/3/tutorial/controlflow.html
>>>for n in range(2, 10): for x in range(2, n): if n % x == 0: print(n, 'equals', x, '*', n//x) break else: # loop fell through without finding a factor print(n, 'is a prime number')All goes good but when n reaches 9 then how x will be equal to 9, as in all previous steps x will not proceeds from 2. As in simple 9 % 2 == 0 will be false and else part should be execute but here this is calculating 9 % 3 == 0 : and printing the statement. I am stucked here, kindly guide me.