[Tutor] /tutorial/controlflow.html break statement

2013-12-02 Thread Pierre-Michel Averseng
Hello, what do you think about the results given by IDLE3 with a script studied recently in T. Digest Vol 117, issue 70 seq. ? I'm working with Linux (Debian family = i.e Linux Mint LMDE : [please, could you excuse my poor English... ? Thanks ! ;^)) ] Linux hojulien 3.10-2-486 #1

Re: [Tutor] /tutorial/controlflow.html break statement

2013-12-02 Thread Flynn, Stephen (L P - IT)
The script studied was : for n in range(2, 10): for x in range(2, n): if n % x == 0: print(n, 'equals', x, '*', n//x) break else: print(n, 'is a prime number') The code above is not what you ran below, in idle. Look at the