[Tutor] Use flag to exit?

Richard D. Moores rdmoores at gmail.com
Thu Jun 24 09:16:05 CEST 2010


On Wed, Jun 23, 2010 at 23:47, Eike Welk <eike.welk at gmx.net> wrote:
> On Thursday June 24 2010 07:31:47 Richard D. Moores wrote:

> I hope I didn't break your algorithm; I'm typing this directly into the email
> program.

I did what you said (<http://tutoree7.pastebin.com/JiFS0b0K>), and get
"invalid syntax" for the comma in line 40.

Taking a stab in the dark I change line 40 as shown in
http://tutoree7.pastebin.com/ybJsm3Rj

Now I get

>>>
The prime greater than or equal to 100 is 101
Traceback (most recent call last):
  File "C:/P31Working/prime_to_biggest_prime_tutor2_Eike2.py", line
40, in <module>
    except (FoundPrimeException, e):
NameError: name 'FoundPrimeException' is not defined
>>>

Dick


More information about the Tutor mailing list