Page 2 - Discuss Bank Accounting Program (Beginner) in the Python Programming forum on Dev Shed. Bank Accounting Program (Beginner) Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.
Posts: 1,075
Time spent in forums: 4 Weeks 1 Day 4 h 41 m 27 sec
Reputation Power: 98
You modified post 8 --- hmm --- maybe you're not finished changing post 8 --- at about the same time of post 15.
I nabbed the 4 files at post 8 (the post with your codes) and ran banking.py. There was an indentation error caused by an if statement without associated code. I inserted a pass statement and ran the program. The output differs from what you reported.
So we're unsynchronized. If the program works as you say it does you'll probably get a passing grade. It won't be an A.
I don't know that there'd be value to comments about "your code" when you think the program is something different from what I think it is.
Take savings.py. The comment at the fourth line says that your savings account class will inherit BankingAccount . I suggested to make this work you'd have to have savings.py import account . Instead, you discarded the inheritance aspect. With inheritance you need to write common methods only once in the parent class. And then you only have to debug them in one place.
So---I apologize for my first post in which I pointed out that you messed up the capitalization of SUCCESS and FAIL. You asked for comments and this was the first problem I found although by no means the most important. In my opinion the algorithm comes first, and then adjust the content of these constant strings.
Posts: 16
Time spent in forums: 3 h 25 m 10 sec
Reputation Power: 0
I am running into the error you just said about inheritance. With the current code its saying how _balance is not an attribute of savings or checking. I imported account into both of them but it still gives the same errors. Help !!