[Tutor] Help with class example

Prasad, Ramit ramit.prasad at jpmorgan.com
Tue Nov 6 00:07:12 CET 2012


Frank Pontius wrote:
> Sent: Saturday, October 27, 2012 12:27 PM
> To: d at davea.name; bgailer at gmail.com
> Cc: tutor at python.org
> Subject: Re: [Tutor] Help with class example
> 
> Here ya go!
> Can't do what you want as this is a programmatic error from interrupter.  Only a screen shot will tell you the
> full situation.  I have class example which is to be used for our homework, and I copied it into IDLE and it
> won't work, with error below.  I've tried several ways to work around this
> 
> Thanks
> Frank
> 


You would be better off trying to run this from the command
line.  The problem is the "if" and "else" lines are indented one
level too far. If you match them with the previous line
it should work just fine.

~Ramit


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  


More information about the Tutor mailing list