Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Erik Newsgroups: comp.lang.python Subject: Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Date: Sun, 27 Dec 2015 21:42:04 +0000 Lines: 32 Message-ID: References: <20151226000941.GA36035@cskk.homeip.net> <4dba6e6d-68f5-42af-b9d8-8bb1bd92312b@googlegroups.com> <6890848e-bffa-4cac-8a3b-3f8a529b7cd9@googlegroups.com> <5e43da5b-01e8-4395-a04c-dc311844a617@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 5H1UZoMPtn2y7NzGmDEVTQ/GcqzP8dre/eibPrfji7mA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'elif': 0.04; 'paths': 0.05; 'data):': 0.07; 'run,': 0.07; 'subject:help': 0.07; '[1,': 0.09; 'attempted': 0.09; 'def': 0.13; 'appropriate': 0.14; '(but': 0.15; 'subject: \n ': 0.15; '"d",': 0.16; '23,': 0.16; 'from:addr:python': 0.16; 'mean,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'run.': 0.16; 'subject:class': 0.16; 'subject:parameters': 0.16; 'url:tutor': 0.16; 'wrote:': 0.16; 'pfxlen:0': 0.18; 'subject:project': 0.18; 'to:2**1': 0.21; 'questions:': 0.22; 'code.': 0.23; 'bit': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'error': 0.27; 'not.': 0.27; "skip:' 10": 0.28; 'joining': 0.29; 'solution,': 0.29; 'url:mailman': 0.30; 'code': 0.30; '15,': 0.30; 'guess': 0.31; 'posting': 0.32; 'getting': 0.33; 'run': 0.33; 'url:python': 0.33; 'url:listinfo': 0.34; 'list': 0.34; 'fail': 0.35; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'mean': 0.38; 'data': 0.39; 'sure': 0.39; 'subject:the': 0.39; 'along': 0.39; 'received:192': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'your': 0.60; 'subject:Need': 0.61; 'charset:windows-1252': 0.62; 'more': 0.63; 'cameron': 0.66; 'god': 0.67; 'finally': 0.70; 'you:': 0.79; 'bless': 0.91 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=LpJvsSpc c=1 sm=1 tr=0 a=Ypmeq7T0cKALDUsRPCToMg==:117 a=Ypmeq7T0cKALDUsRPCToMg==:17 a=0Bzu9jTXAAAA:8 a=EBOSESyhAAAA:8 a=N659UExz7-8A:10 a=8AHkEIZyAAAA:8 a=c3dOluh0hbWOJQNHnDcA:9 a=pILNOxqGKmIA:10 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <5e43da5b-01e8-4395-a04c-dc311844a617@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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:100919 On 27/12/15 20:32, Prince Udoka wrote: > thanks mr cameron simpson, finally at i got the solution, God bless you: > def manipulate_data(kind, data): > if kind == 'list': > for data in [1, 2, 3, 4, 5]: > return data.reverse() > elif kind == 'set': > for data in {"a", "b", "c", "d", "e"}: > data.add("ANDELA") > data.add("TIA") > data.add("AFRICA") > return data > elif kind == 'dictionary': > for data in {"apples": 23, "oranges": 15, "mangoes": 3, "grape": 45}: > return data.key() Please stop posting code to the list which you have not even attempted to run. This is getting a bit silly. RUN your code. Three of the four paths through that code will fail when it is run, so I am sure that you have not. If you don't understand the error messages then ask what they mean, along with your guess at what you think they mean and what you tried to do about it (but did not work). Please consider joining a list which is more appropriate for these questions: https://mail.python.org/mailman/listinfo/tutor/ E.