i cant seem to figure out the error

Erik python at lucidity.plus.com
Sun Apr 3 16:10:51 EDT 2016


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.



More information about the Python-list mailing list