Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106384
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Jason Friedman <jsf80238@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: i cant seem to figure out the error |
| Date | Sun, 3 Apr 2016 11:37:09 -0600 |
| Lines | 17 |
| Message-ID | <mailman.405.1459705037.28225.python-list@python.org> (permalink) |
| References | <CABMxrODHsfZuSUSWT1AkBDAUzC9U5=MheXQv01QOsTNiSE2a=w@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de 2BJ5+V28tOabEPJ20dLKTwqfuqEbJ2eCHHTq/jxyQemA== |
| Return-Path | <jsf80238@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.019 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'else:': 0.03; 'cc:addr :python-list': 0.09; 'subject:error': 0.11; 'def': 0.13; 'received:io': 0.16; 'received:psf.io': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'received:google.com': 0.35; 'needed': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'received:209.85.220': 0.38; 'subject:the': 0.39; 'deposit': 0.61; 'received:209.85.220.194': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=zbyv54ORW/tWSatoXdjxSMM3NR5zl2wavP1zfaNIe7c=; b=VL7sbgmSjA3O44rhjLh6CU31I1pImXhpTf5OITfBl2Rb5AnzcNTxttuPe8fuU1SVzs AaoIhPgL7sDeyTaTr2yEvjJnSpTvkuQkqfjV60dEJj4oj7lfKbqinJHHt0XINFNfTF8L F1sCIs6pEUPtv4VAXB2GX4Sdw2op+oNtOeZZxaql9UazEZJS28bjZjxSXOQWcrcXwrn9 JYaVrdo9fu60SjeW/ZAld1SQMNLiWDhf+UxwQkombpU0XJkmwZDtGdioKCG1RldfvSNh WEDU+/7N3zf2dRQbxE8Q5BETr9A8+Ch/Nyd+VAGuFmXcqS5WLd51PNAvUsObhbBdDjGW HlEw== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=zbyv54ORW/tWSatoXdjxSMM3NR5zl2wavP1zfaNIe7c=; b=jYVS3QMGi9x0uOYHoXhqdM45+No8gYgakIJMkWQWzYteamjV3r42+zUfsSvMrD1XBb /rqWv2DhkIulYHGW0HhxU/ZjfcakxyTRTkBXRgTS0k9h1eWNd+ciXXVlNHIdV1ZrHjwM U3vRXxfMoprV9y/2Q/RTLp2utQ9lZjG3gtKS1+y8P+SgSyLHlFcg4Ua/HwkkZohRjGRc rjB+3sOKTqy2uqis8VwnVTT+nj0abnmaoOxZIDyJ/6pwFzB7c3/7PH9hZLg7kLWhvPYe K5afzWDTeRb/1tflZ1aEOtEkXjbQYM0qKGqd95oiE0yZn1/EAKW3ASJbpNRByErkRHTW tLwQ== |
| X-Gm-Message-State | AD7BkJLzc2YYffK6t+1HTN4St/XGI7hm3mIvqL9NVAdSPYuV5Z224e1yBwB01B7DA4MnQxfH8oyuteaiKi7s4g== |
| X-Received | by 10.55.72.196 with SMTP id v187mr29391995qka.97.1459705029623; Sun, 03 Apr 2016 10:37:09 -0700 (PDT) |
| In-Reply-To | <CABMxrODHsfZuSUSWT1AkBDAUzC9U5=MheXQv01QOsTNiSE2a=w@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:106384 |
Show key headers only | View raw
> def deposit(self, amount):
> self.amount=amount
> self.balance += amount
> return self.balance
>
>
> def withdraw(self, amount):
> self.amount=amount
> if(amount > self.balance):
> return ("Amount greater than available balance.")
> else:
> self.balance -= amount
> return self.balance
Also, this line is not needed in the deposit and withdraw methods:
self.amount=amount
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: i cant seem to figure out the error Jason Friedman <jsf80238@gmail.com> - 2016-04-03 11:37 -0600
csiph-web