![](https://secure.gravatar.com/avatar/461dc0e7cd223d2a7ddbf62578cad58e.jpg?s=120&d=mm&r=g)
March 23, 2015
5:24 a.m.
in documentation page of python 3.0 and current documentation of python tutorial there is missing break statement in break and continue statements example. 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') here extra break statement is required at the end of else loop.