Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #106403

Re: i cant seem to figure out the error

From Erik <python@lucidity.plus.com>
Newsgroups comp.lang.python
Subject Re: i cant seem to figure out the error
Date 2016-04-03 21:10 +0100
Message-ID <mailman.411.1459714254.28225.python-list@python.org> (permalink)
References <CABMxrODHsfZuSUSWT1AkBDAUzC9U5=MheXQv01QOsTNiSE2a=w@mail.gmail.com>

Show all headers | View raw


Hi Anthony,

On 03/04/16 16:06, anthony uwaifo wrote:
> please i need help with this assignment. I have written a code and i still
> get an error. please help me debug my code.

We see this assignment come up a lot. The "tutor" list is a better place 
to go, but well done for at least attempting it and coming up with quite 
a good result.

>     - Create a method called `withdraw` that takes in cash withdrawal amount
>     and updates the balance accordingly. if amount is greater than balance
>     return `"invalid transaction"`

Read this carefully. Read it _literally_. What does your 'withdraw' 
method return?

E.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: i cant seem to figure out the error Erik <python@lucidity.plus.com> - 2016-04-03 21:10 +0100

csiph-web