Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Date: Mon, 14 Mar 2016 12:08:50 +1100 Lines: 41 Message-ID: References: <5ec1d759-a2ab-4193-a4aa-869c0bf0506c@googlegroups.com> <22ef18b3-0177-40e6-8220-727299072d27@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de I+gdQguGKDyLIhMHXxfQvQTfNH91Y0MSTy5XaFK5S1Hw== Cancel-Lock: sha1:stOdyr/wgqHZyLzIOTYi7XksznU= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '(so': 0.07; 'assignment': 0.07; 'subject:help': 0.07; 'implies': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'python.': 0.11; 'bankaccount': 0.16; 'code),': 0.16; 'expectation.': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:class': 0.16; 'subject:parameters': 0.16; 'suite.': 0.16; 'case.': 0.18; 'subject:project': 0.18; 'tests': 0.18; 'changes': 0.20; 'questions:': 0.22; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'example': 0.26; 'header:X-Complaints-To:1': 0.26; 'least': 0.27; 'behaviour': 0.29; 'task': 0.30; 'run': 0.33; 'class': 0.33; 'right?': 0.33; 'attempt': 0.35; 'knowledge': 0.35; 'cases': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'done.': 0.37; 'doing': 0.38; 'why': 0.39; 'test': 0.39; 'subject:the': 0.39; 'enough': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'hello,': 0.40; 'questions': 0.40; 'easy': 0.60; 'your': 0.60; 'provide': 0.61; 'subject: ': 0.61; 'subject:Need': 0.61; 'email addr:gmail.com': 0.62; 'course': 0.62; 'complete': 0.63; 'account': 0.66; 'repeat': 0.67; 'teaching': 0.69; '\xe2\x80\x93': 0.72; 'bank': 0.75; '_o__)': 0.84; 'received:125': 0.84; 'smoker': 0.84 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104796 chetam.chetzy@gmail.com writes: > Hello, I have this same assignment to create Bank account and I am new > to python. Welcome to Python! If you have an assignment, that implies you are working through a course and you have received enough teaching to attempt the task yourself. > please help me out. Apply your existing Python knowledge – you've been learning it in your course, right? – to run the test suite provided. Follow this procedure. * Run the test suite. * Observe what tests fail. If they all run and all pass, you're done. * Write just enough of the BankAccount class that it changes the behaviour of at least one test case. * Repeat from the top, until all the test cases pass. If you have questions: * Please provide a complete example (so that we can also run the same code), * Which is very small (so it's easy to discuss), * and ask specific questions about what it's doing and why that doesn't meet your expectation. -- \ “Kissing a smoker is like licking an ashtray.” —anonymous | `\ | _o__) | Ben Finney