Re: Help with subclasses and classes

2016-07-03 Thread Terry Reedy
On 7/2/2016 8:58 PM, cadenmr...@gmail.com wrote: When i run the code I get this error : Traceback (most recent call last): File "C:/Python25/chapter2", line 18, in bank=InterestAccount(5,1000,0.5) NameError: name 'InterestAccount' is not defined I can't find the issue, any help? class

Re: Help with subclasses and classes

2016-07-02 Thread Bob Gailer
On Jul 2, 2016 9:00 PM, wrote: > > When i run the code I get this error : > Traceback (most recent call last): > File "C:/Python25/chapter2", line 18, in > bank=InterestAccount(5,1000,0.5) > NameError: name 'InterestAccount' is not defined > > I can't find the issue,

Help with subclasses and classes

2016-07-02 Thread cadenmrice
When i run the code I get this error : Traceback (most recent call last): File "C:/Python25/chapter2", line 18, in bank=InterestAccount(5,1000,0.5) NameError: name 'InterestAccount' is not defined I can't find the issue, any help? class BankAccount: def __init__(self,numb,bal):