Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100324 > unrolled thread
| Started by | Harbey Leke <idowuolawale@gmail.com> |
|---|---|
| First post | 2015-12-12 01:05 -0800 |
| Last post | 2016-03-05 13:27 +0100 |
| Articles | 20 on this page of 109 — 43 participants |
Back to article view | Back to comp.lang.python
Need help on a project To :"Create a class called BankAccount with the following parameters " Harbey Leke <idowuolawale@gmail.com> - 2015-12-12 01:05 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Angelico <rosuav@gmail.com> - 2015-12-12 20:21 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Harbey Leke <idowuolawale@gmail.com> - 2015-12-12 02:09 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Angelico <rosuav@gmail.com> - 2015-12-12 21:17 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Harbey Leke <idowuolawale@gmail.com> - 2015-12-12 02:27 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Harbey Leke <idowuolawale@gmail.com> - 2015-12-12 02:29 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Warrick <kwpolska@gmail.com> - 2015-12-12 11:37 +0100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Steven D'Aprano <steve@pearwood.info> - 2015-12-12 23:32 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " mkatietola@gmail.com - 2015-12-12 09:37 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " malitician@gmail.com - 2015-12-18 19:15 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-19 14:47 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " malitician@gmail.com - 2015-12-19 15:19 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-20 00:41 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Michael Torrie <torriem@gmail.com> - 2015-12-19 18:09 -0700
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-25 15:08 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-25 15:09 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Erik <python@lucidity.plus.com> - 2015-12-26 00:01 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Cameron Simpson <cs@zip.com.au> - 2015-12-26 11:09 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-25 18:04 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Larry Hudson <orgnut@yahoo.com> - 2015-12-25 20:02 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " malitician@gmail.com - 2015-12-26 00:47 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-25 18:36 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-26 02:38 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-26 03:23 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Cameron Simpson <cs@zip.com.au> - 2015-12-27 07:20 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " lee <malitician@gmail.com> - 2015-12-27 07:02 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Erik <python@lucidity.plus.com> - 2015-12-27 15:26 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " lee <malitician@gmail.com> - 2015-12-27 12:26 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Prince Udoka <princeudo52@gmail.com> - 2015-12-27 12:32 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " lee <malitician@gmail.com> - 2015-12-27 12:54 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Erik <python@lucidity.plus.com> - 2015-12-27 21:42 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Cameron Simpson <cs@zip.com.au> - 2015-12-28 14:32 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-20 01:51 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " anyanwuchukwuemeka9@gmail.com - 2016-03-19 14:40 -0700
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Joel Goldstick <joel.goldstick@gmail.com> - 2016-03-19 18:03 -0400
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-19 22:24 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Ben Finney <ben+python@benfinney.id.au> - 2016-03-20 11:26 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Denis McMahon <denismfmcmahon@gmail.com> - 2015-12-20 11:04 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Angelico <rosuav@gmail.com> - 2015-12-20 22:29 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " jeanbigboute@gmail.com - 2015-12-25 20:15 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-26 01:52 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-24 04:39 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-12-24 11:57 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-24 04:59 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Angelico <rosuav@gmail.com> - 2015-12-25 00:10 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-24 06:17 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Angelico <rosuav@gmail.com> - 2015-12-25 01:39 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " malitician@gmail.com - 2015-12-24 11:36 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Tim Chase <python.list@tim.thechases.com> - 2015-12-24 14:48 -0600
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " malitician@gmail.com - 2015-12-26 01:01 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Erik <python@lucidity.plus.com> - 2015-12-24 21:09 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Joel Goldstick <joel.goldstick@gmail.com> - 2015-12-24 10:47 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " "D'Arcy J.M. Cain" <darcy@VybeNetworks.com> - 2015-12-24 11:14 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Grant Edwards <invalid@invalid.invalid> - 2015-12-24 17:30 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Gene Heskett <gheskett@wdtv.com> - 2015-12-24 13:51 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " "D'Arcy J.M. Cain" <darcy@VybeNetworks.com> - 2015-12-24 14:09 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-12-24 18:55 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-12-26 11:36 +1300
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Grant Edwards <invalid@invalid.invalid> - 2015-12-31 16:46 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Angelico <rosuav@gmail.com> - 2015-12-25 03:31 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " princeudo52@gmail.com - 2015-12-25 15:05 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " xaviertim017@gmail.com - 2016-01-01 15:15 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " lee <malitician@gmail.com> - 2015-12-28 01:25 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Prince Udoka <princeudo52@gmail.com> - 2015-12-28 01:29 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Prince Udoka <princeudo52@gmail.com> - 2015-12-28 01:39 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " homiemusa@gmail.com - 2016-01-11 13:22 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Prince Udoka <princeudo52@gmail.com> - 2015-12-28 01:34 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Ben Finney <ben+python@benfinney.id.au> - 2015-12-28 20:41 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Cameron Simpson <cs@zip.com.au> - 2015-12-29 09:29 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " lee <malitician@gmail.com> - 2015-12-29 00:49 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Cameron Simpson <cs@zip.com.au> - 2015-12-29 21:48 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " lee <malitician@gmail.com> - 2015-12-29 04:39 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " homiemusa@gmail.com - 2016-01-11 14:07 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-01-11 19:46 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Prince Udoka <princeudo52@gmail.com> - 2015-12-28 23:35 +0100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " phatsammhiel@gmail.com - 2016-01-13 05:27 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Ben Finney <ben+python@benfinney.id.au> - 2015-12-28 20:38 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " lee <malitician@gmail.com> - 2015-12-28 01:53 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Joel Goldstick <joel.goldstick@gmail.com> - 2015-12-28 07:32 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " botic <princeudo52@gmail.com> - 2015-12-28 14:10 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " phatsammhiel@gmail.com - 2016-01-13 05:28 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Angelico <rosuav@gmail.com> - 2016-01-14 00:37 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Joel Goldstick <joel.goldstick@gmail.com> - 2016-01-13 09:43 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Tim Golden <mail@timgolden.me.uk> - 2016-01-13 15:23 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Andrew Ongko <andrew.ongko@gmail.com> - 2016-01-13 22:35 +0700
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " phatsammhiel@gmail.com - 2016-01-13 05:44 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " kasale.jacktone@gmail.com - 2016-01-14 03:50 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-28 14:27 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Won Chang <princeudo52@gmail.com> - 2015-12-30 10:21 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Joel Goldstick <joel.goldstick@gmail.com> - 2015-12-30 15:06 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Joel Goldstick <joel.goldstick@gmail.com> - 2015-12-30 15:11 -0500
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " acushla4real@gmail.com - 2016-01-08 08:37 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " ifeanyioprah@gmail.com - 2016-01-11 21:26 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " ifeanyioprah@gmail.com - 2016-01-11 21:30 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " ifeanyioprah@gmail.com - 2016-01-11 21:33 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " ifeanyioprah@gmail.com - 2016-01-11 21:33 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " chetam.chetzy@gmail.com - 2016-03-13 17:17 -0700
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Angelico <rosuav@gmail.com> - 2016-03-14 11:40 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " MRAB <python@mrabarnett.plus.com> - 2016-03-14 00:57 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Chris Angelico <rosuav@gmail.com> - 2016-03-14 12:02 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Ben Finney <ben+python@benfinney.id.au> - 2016-03-14 12:08 +1100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " BartC <bc@freeuk.com> - 2016-03-14 01:33 +0000
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " xaviertim017@gmail.com - 2016-01-01 16:24 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " mrkimanindegwa@gmail.com - 2016-01-11 23:21 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " lee <malitician@gmail.com> - 2016-01-12 05:20 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " bonfaceo3@gmail.com - 2016-01-13 03:14 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " lucasfrank254@gmail.com - 2016-03-04 23:41 -0800
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Peter Otten <__peter__@web.de> - 2016-03-05 10:07 +0100
Re: Need help on a project To :"Create a class called BankAccount with the following parameters " "Albert Visser" <albert.visser@gmail.com> - 2016-03-05 13:27 +0100
Page 5 of 6 — ← Prev page 1 2 3 4 [5] 6 Next page →
| From | phatsammhiel@gmail.com |
|---|---|
| Date | 2016-01-13 05:28 -0800 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <252436f8-89dc-4273-9ec9-3bb2207da846@googlegroups.com> |
| In reply to | #100937 |
please kindly inbox me the solution thanks in anticipation of your kind gesture sammhieladeolu@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2016-01-14 00:37 +1100 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.103.1452692241.13488.python-list@python.org> |
| In reply to | #101614 |
On Thu, Jan 14, 2016 at 12:28 AM, <phatsammhiel@gmail.com> wrote: > please kindly inbox me the solution > > thanks in anticipation of your kind gesture > > > sammhieladeolu@gmail.com Don't you get it? You are not going to be given the code. All you're doing is making us resent your presence, which means you're less likely to get help in the future. Please do not repeatedly post from new email addresses. This is spamming, and will be reported to Gmail as such. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2016-01-13 09:43 -0500 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.104.1452696199.13488.python-list@python.org> |
| In reply to | #101614 |
On Wed, Jan 13, 2016 at 8:37 AM, Chris Angelico <rosuav@gmail.com> wrote: > On Thu, Jan 14, 2016 at 12:28 AM, <phatsammhiel@gmail.com> wrote: > > please kindly inbox me the solution > > > > thanks in anticipation of your kind gesture > > > > > > sammhieladeolu@gmail.com > > Don't you get it? You are not going to be given the code. All you're > doing is making us resent your presence, which means you're less > likely to get help in the future. > > Please do not repeatedly post from new email addresses. This is > spamming, and will be reported to Gmail as such. > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list > 93 messages in this thread. a handful are earnest attempts to help a beginner with what looks like homework. The rest are an odd barrage of obsequious please and whining from who knows how many OPs.begging to have their source code delivered. bleh -- Joel Goldstick http://joelgoldstick.com/stats/birthdays
[toc] | [prev] | [next] | [standalone]
| From | Tim Golden <mail@timgolden.me.uk> |
|---|---|
| Date | 2016-01-13 15:23 +0000 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.105.1452698727.13488.python-list@python.org> |
| In reply to | #101614 |
On 13/01/2016 14:43, Joel Goldstick wrote: > On Wed, Jan 13, 2016 at 8:37 AM, Chris Angelico <rosuav@gmail.com> wrote: > >> On Thu, Jan 14, 2016 at 12:28 AM, <phatsammhiel@gmail.com> wrote: >>> please kindly inbox me the solution >>> >>> thanks in anticipation of your kind gesture >>> >>> >>> sammhieladeolu@gmail.com >> >> Don't you get it? You are not going to be given the code. All you're >> doing is making us resent your presence, which means you're less >> likely to get help in the future. >> >> Please do not repeatedly post from new email addresses. This is >> spamming, and will be reported to Gmail as such. >> >> ChrisA >> -- >> https://mail.python.org/mailman/listinfo/python-list >> > > 93 messages in this thread. a handful are earnest attempts to help a > beginner with what looks like homework. The rest are an odd barrage of > obsequious please and whining from who knows how many OPs.begging to have > their source code delivered. I've also held this (and one other) email address for moderation. TJG
[toc] | [prev] | [next] | [standalone]
| From | Andrew Ongko <andrew.ongko@gmail.com> |
|---|---|
| Date | 2016-01-13 22:35 +0700 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.107.1452699563.13488.python-list@python.org> |
| In reply to | #101614 |
On Jan 13, 2016 10:25 PM, "Tim Golden" <mail@timgolden.me.uk> wrote: > > On 13/01/2016 14:43, Joel Goldstick wrote: > > On Wed, Jan 13, 2016 at 8:37 AM, Chris Angelico <rosuav@gmail.com> wrote: > > > >> On Thu, Jan 14, 2016 at 12:28 AM, <phatsammhiel@gmail.com> wrote: > >>> please kindly inbox me the solution > >>> > >>> thanks in anticipation of your kind gesture > >>> > >>> > >>> sammhieladeolu@gmail.com > >> > >> Don't you get it? You are not going to be given the code. All you're > >> doing is making us resent your presence, which means you're less > >> likely to get help in the future. > >> > >> Please do not repeatedly post from new email addresses. This is > >> spamming, and will be reported to Gmail as such. > >> > >> ChrisA > >> -- > >> https://mail.python.org/mailman/listinfo/python-list > >> > > > > 93 messages in this thread. a handful are earnest attempts to help a > > beginner with what looks like homework. The rest are an odd barrage of > > obsequious please and whining from who knows how many OPs.begging to have > > their source code delivered. > > I've also held this (and one other) email address for moderation. > > TJG > > -- > https://mail.python.org/mailman/listinfo/python-list This thread is so annoying, don't you guys think? At least if it is a homework, one should try to do their best by themselves. While this one, after getting tons of hints, or even the answers itself, is still asking for help. I wonder what is the meaning behind. Cheers, Andrew
[toc] | [prev] | [next] | [standalone]
| From | phatsammhiel@gmail.com |
|---|---|
| Date | 2016-01-13 05:44 -0800 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <929927da-d9ef-422a-9b39-91903589c6b2@googlegroups.com> |
| In reply to | #100937 |
On Monday, December 28, 2015 at 2:10:53 PM UTC-8, Won Chang wrote: > lee, i will give u the answer just inbox me princeudo55@yahoo.com, so that i can drop it privately please assist with the solution on this phatsammhiel@gmail.com thanks
[toc] | [prev] | [next] | [standalone]
| From | kasale.jacktone@gmail.com |
|---|---|
| Date | 2016-01-14 03:50 -0800 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <3f363de0-55d2-4e37-bd07-f946a505f78f@googlegroups.com> |
| In reply to | #100930 |
hello lee so what was the final answer u gave for the following question.. reate a constructor that takes in an integer and assigns this to a `balance` property. Create a method called `deposit` that takes in cash deposit amount and updates the balance accordingly. 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"` Create a subclass MinimumBalanceAccount of the BankAccount class
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2015-12-28 14:27 +0000 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.41.1451312907.11925.python-list@python.org> |
| In reply to | #100924 |
On 28/12/2015 09:25, lee wrote: > I'm still stuck on this, any Rescuer? > Try running your code at an interactive prompt, or in a debugger, or use paper and pencil to trace what the code is actually doing as opposed to what you are required to get it to do. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Won Chang <princeudo52@gmail.com> |
|---|---|
| Date | 2015-12-30 10:21 -0800 |
| Message-ID | <d050abfb-cbaa-4c54-9074-eca957974e22@googlegroups.com> |
| In reply to | #100324 |
i have these task which i believe i have done well to some level
Create a function get_algorithm_result to implement the algorithm below
1- Get a list of numbers L1, L2, L3....LN as argument 2- Assume L1 is the largest, Largest = L1 3- Take next number Li from the list and do the following 4- If Largest is less than Li 5- Largest = Li 6- If Li is last number from the list then 7- return Largest and come out 8- Else repeat same process starting from step 3
Create a function prime_number that does the following Takes as parameter an integer and Returns boolean value true if the value is prime or Returns boolean value false if the value is not prime
so i came up with this code below
def get_algorithm_result(my_list):
if not any(not type(y) is int for y in my_list):
largest = 0
for item in range(0,len(my_list)):
if largest < my_list[item]:
largest = my_list[item]
return largest
else:
return(my_list[-1])
def prime_number(integer):
if integer%2==0 and 2!=integer:
return False
else:
return True
get_algorithm_result([1, 78, 34, 12, 10, 3])
get_algorithm_result(["apples", "oranges", "mangoes", "banana", "zoo"])
prime_number(1)
prime_number(78)
prime_number(11)
for the question above, there is a unittes which reads
import unittest
class AlgorithmTestCases(unittest.TestCase):
def test_maximum_number_one(self):
result = get_algorithm_result([1, 78, 34, 12, 10, 3])
self.assertEqual(result, 78, msg="Incorrect number")
def test_maximum_number_two(self):
result = get_algorithm_result(["apples", "oranges", "mangoes", "banana", "zoo"])
self.assertEqual(result, "zoo", msg="Incorrect number")
def test_prime_number_one(self):
result = prime_number(1)
self.assertEqual(result, True, msg="Result is invalid")
def test_prime_number_two(self):
result = prime_number(78)
self.assertEqual(result, False, msg="Result is invalid")
def test_prime_number_three(self):
result = prime_number(11)
self.assertEqual(result, True, msg="Result is invalid")
but once i run my code ,it returns error saying Test Spec Failed
Your solution failed to pass all the tests
what is actually wrong with my code?
[toc] | [prev] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2015-12-30 15:06 -0500 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.79.1451506008.11925.python-list@python.org> |
| In reply to | #101005 |
On Wed, Dec 30, 2015 at 1:21 PM, Won Chang <princeudo52@gmail.com> wrote: > > i have these task which i believe i have done well to some level > > Create a function get_algorithm_result to implement the algorithm below > > 1- Get a list of numbers L1, L2, L3....LN as argument 2- Assume L1 is the > largest, Largest = L1 3- Take next number Li from the list and do the > following 4- If Largest is less than Li 5- Largest = Li 6- If Li is last > number from the list then 7- return Largest and come out 8- Else repeat > same process starting from step 3 > > Create a function prime_number that does the following Takes as parameter > an integer and Returns boolean value true if the value is prime or Returns > boolean value false if the value is not prime > > so i came up with this code below > > def get_algorithm_result(my_list): > if not any(not type(y) is int for y in my_list): > largest = 0 > for item in range(0,len(my_list)): > if largest < my_list[item]: > largest = my_list[item] > return largest > else: > > return(my_list[-1]) > > def prime_number(integer): > if integer%2==0 and 2!=integer: > return False > else: > return True > > get_algorithm_result([1, 78, 34, 12, 10, 3]) > get_algorithm_result(["apples", "oranges", "mangoes", "banana", "zoo"]) > prime_number(1) > prime_number(78) > prime_number(11) > for the question above, there is a unittes which reads > > import unittest > > class AlgorithmTestCases(unittest.TestCase): > def test_maximum_number_one(self): > result = get_algorithm_result([1, 78, 34, 12, 10, 3]) > self.assertEqual(result, 78, msg="Incorrect number") > > def test_maximum_number_two(self): > result = get_algorithm_result(["apples", "oranges", "mangoes", > "banana", "zoo"]) > self.assertEqual(result, "zoo", msg="Incorrect number") > > def test_prime_number_one(self): > result = prime_number(1) > self.assertEqual(result, True, msg="Result is invalid") > > def test_prime_number_two(self): > result = prime_number(78) > self.assertEqual(result, False, msg="Result is invalid") > > def test_prime_number_three(self): > result = prime_number(11) > self.assertEqual(result, True, msg="Result is invalid") > but once i run my code ,it returns error saying Test Spec Failed > > Your solution failed to pass all the tests > what is actually wrong with my code? > You need to copy and paste the complete results and or traceback. There is no string "Test Spec Failed" in anything you have shown > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays
[toc] | [prev] | [next] | [standalone]
| From | Joel Goldstick <joel.goldstick@gmail.com> |
|---|---|
| Date | 2015-12-30 15:11 -0500 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.81.1451506620.11925.python-list@python.org> |
| In reply to | #101005 |
On Wed, Dec 30, 2015 at 3:06 PM, Joel Goldstick <joel.goldstick@gmail.com>
wrote:
>
>
> On Wed, Dec 30, 2015 at 1:21 PM, Won Chang <princeudo52@gmail.com> wrote:
>
>>
>> i have these task which i believe i have done well to some level
>>
>> Create a function get_algorithm_result to implement the algorithm below
>>
>> 1- Get a list of numbers L1, L2, L3....LN as argument 2- Assume L1 is the
>> largest, Largest = L1 3- Take next number Li from the list and do the
>> following 4- If Largest is less than Li 5- Largest = Li 6- If Li is last
>> number from the list then 7- return Largest and come out 8- Else repeat
>> same process starting from step 3
>>
>> Create a function prime_number that does the following Takes as parameter
>> an integer and Returns boolean value true if the value is prime or Returns
>> boolean value false if the value is not prime
>>
>> so i came up with this code below
>>
>> def get_algorithm_result(my_list):
>> if not any(not type(y) is int for y in my_list):
>>
>
Not sure what above line is trying to do? Check that item is int? That
won't help with the case of strings in my_list
> largest = 0
>> for item in range(0,len(my_list)):
>>
>
The above line can be more pythonically expressed as
for item in my_list:
if largest < item:
largest = item
return largest
Then below is gone. Not sure what the else clause below is for
> if largest < my_list[item]:
>> largest = my_list[item]
>> return largest
>> else:
>>
>> return(my_list[-1])
>>
>> def prime_number(integer):
>> if integer%2==0 and 2!=integer:
>> return False
>> else:
>> return True
>>
>> get_algorithm_result([1, 78, 34, 12, 10, 3])
>> get_algorithm_result(["apples", "oranges", "mangoes", "banana", "zoo"])
>> prime_number(1)
>> prime_number(78)
>> prime_number(11)
>> for the question above, there is a unittes which reads
>>
>> import unittest
>>
>> class AlgorithmTestCases(unittest.TestCase):
>> def test_maximum_number_one(self):
>> result = get_algorithm_result([1, 78, 34, 12, 10, 3])
>> self.assertEqual(result, 78, msg="Incorrect number")
>>
>> def test_maximum_number_two(self):
>> result = get_algorithm_result(["apples", "oranges", "mangoes",
>> "banana", "zoo"])
>> self.assertEqual(result, "zoo", msg="Incorrect number")
>>
>> def test_prime_number_one(self):
>> result = prime_number(1)
>> self.assertEqual(result, True, msg="Result is invalid")
>>
>> def test_prime_number_two(self):
>> result = prime_number(78)
>> self.assertEqual(result, False, msg="Result is invalid")
>>
>> def test_prime_number_three(self):
>> result = prime_number(11)
>> self.assertEqual(result, True, msg="Result is invalid")
>> but once i run my code ,it returns error saying Test Spec Failed
>>
>> Your solution failed to pass all the tests
>> what is actually wrong with my code?
>>
>
> You need to copy and paste the complete results and or traceback. There
> is no string "Test Spec Failed" in anything you have shown
>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
>
>
>
> --
> Joel Goldstick
> http://joelgoldstick.com/stats/birthdays
>
--
Joel Goldstick
http://joelgoldstick.com/stats/birthdays
[toc] | [prev] | [next] | [standalone]
| From | acushla4real@gmail.com |
|---|---|
| Date | 2016-01-08 08:37 -0800 |
| Message-ID | <a1290dad-6a9e-44ac-92fb-e71f7775d500@googlegroups.com> |
| In reply to | #101005 |
On Wednesday, 30 December 2015 19:21:32 UTC+1, Won Chang wrote: > i have these task which i believe i have done well to some level > > Create a function get_algorithm_result to implement the algorithm below > > 1- Get a list of numbers L1, L2, L3....LN as argument 2- Assume L1 is the largest, Largest = L1 3- Take next number Li from the list and do the following 4- If Largest is less than Li 5- Largest = Li 6- If Li is last number from the list then 7- return Largest and come out 8- Else repeat same process starting from step 3 > > Create a function prime_number that does the following Takes as parameter an integer and Returns boolean value true if the value is prime or Returns boolean value false if the value is not prime > > so i came up with this code below > > def get_algorithm_result(my_list): > if not any(not type(y) is int for y in my_list): > largest = 0 > for item in range(0,len(my_list)): > if largest < my_list[item]: > largest = my_list[item] > return largest > else: > > return(my_list[-1]) > > def prime_number(integer): > if integer%2==0 and 2!=integer: > return False > else: > return True > > get_algorithm_result([1, 78, 34, 12, 10, 3]) > get_algorithm_result(["apples", "oranges", "mangoes", "banana", "zoo"]) > prime_number(1) > prime_number(78) > prime_number(11) > for the question above, there is a unittes which reads > > import unittest > > class AlgorithmTestCases(unittest.TestCase): > def test_maximum_number_one(self): > result = get_algorithm_result([1, 78, 34, 12, 10, 3]) > self.assertEqual(result, 78, msg="Incorrect number") > > def test_maximum_number_two(self): > result = get_algorithm_result(["apples", "oranges", "mangoes", "banana", "zoo"]) > self.assertEqual(result, "zoo", msg="Incorrect number") > > def test_prime_number_one(self): > result = prime_number(1) > self.assertEqual(result, True, msg="Result is invalid") > > def test_prime_number_two(self): > result = prime_number(78) > self.assertEqual(result, False, msg="Result is invalid") > > def test_prime_number_three(self): > result = prime_number(11) > self.assertEqual(result, True, msg="Result is invalid") > but once i run my code ,it returns error saying Test Spec Failed > > Your solution failed to pass all the tests > what is actually wrong with my code? I had to use a hack to bypass it, worked and I moved on to next quiz
[toc] | [prev] | [next] | [standalone]
| From | ifeanyioprah@gmail.com |
|---|---|
| Date | 2016-01-11 21:26 -0800 |
| Message-ID | <6b98b493-fe07-446d-a58c-b243c342d270@googlegroups.com> |
| In reply to | #101385 |
Please how did you back it to move over to the next question pls need your help
[toc] | [prev] | [next] | [standalone]
| From | ifeanyioprah@gmail.com |
|---|---|
| Date | 2016-01-11 21:30 -0800 |
| Message-ID | <de15de23-7e04-44d4-90a9-99cc333cde8b@googlegroups.com> |
| In reply to | #101385 |
How do I use hack to move to the next question
[toc] | [prev] | [next] | [standalone]
| From | ifeanyioprah@gmail.com |
|---|---|
| Date | 2016-01-11 21:33 -0800 |
| Message-ID | <a7bb8d8a-13e6-4c5b-8118-166351519771@googlegroups.com> |
| In reply to | #101385 |
How do I use hack to move to the next question
[toc] | [prev] | [next] | [standalone]
| From | ifeanyioprah@gmail.com |
|---|---|
| Date | 2016-01-11 21:33 -0800 |
| Message-ID | <8e525b69-1d63-4674-8a6a-80ee81b33766@googlegroups.com> |
| In reply to | #101385 |
How do I use hack to move to the next question
[toc] | [prev] | [next] | [standalone]
| From | chetam.chetzy@gmail.com |
|---|---|
| Date | 2016-03-13 17:17 -0700 |
| Message-ID | <22ef18b3-0177-40e6-8220-727299072d27@googlegroups.com> |
| In reply to | #101385 |
On Friday, January 8, 2016 at 11:38:11 AM UTC-5, acushl...@gmail.com wrote:
> On Wednesday, 30 December 2015 19:21:32 UTC+1, Won Chang wrote:
> > i have these task which i believe i have done well to some level
> >
> > Create a function get_algorithm_result to implement the algorithm below
> >
> > 1- Get a list of numbers L1, L2, L3....LN as argument 2- Assume L1 is the largest, Largest = L1 3- Take next number Li from the list and do the following 4- If Largest is less than Li 5- Largest = Li 6- If Li is last number from the list then 7- return Largest and come out 8- Else repeat same process starting from step 3
> >
> > Create a function prime_number that does the following Takes as parameter an integer and Returns boolean value true if the value is prime or Returns boolean value false if the value is not prime
> >
> > so i came up with this code below
> >
> > def get_algorithm_result(my_list):
> > if not any(not type(y) is int for y in my_list):
> > largest = 0
> > for item in range(0,len(my_list)):
> > if largest < my_list[item]:
> > largest = my_list[item]
> > return largest
> > else:
> >
> > return(my_list[-1])
> >
> > def prime_number(integer):
> > if integer%2==0 and 2!=integer:
> > return False
> > else:
> > return True
> >
> > get_algorithm_result([1, 78, 34, 12, 10, 3])
> > get_algorithm_result(["apples", "oranges", "mangoes", "banana", "zoo"])
> > prime_number(1)
> > prime_number(78)
> > prime_number(11)
> > for the question above, there is a unittes which reads
> >
> > import unittest
> >
> > class AlgorithmTestCases(unittest.TestCase):
> > def test_maximum_number_one(self):
> > result = get_algorithm_result([1, 78, 34, 12, 10, 3])
> > self.assertEqual(result, 78, msg="Incorrect number")
> >
> > def test_maximum_number_two(self):
> > result = get_algorithm_result(["apples", "oranges", "mangoes", "banana", "zoo"])
> > self.assertEqual(result, "zoo", msg="Incorrect number")
> >
> > def test_prime_number_one(self):
> > result = prime_number(1)
> > self.assertEqual(result, True, msg="Result is invalid")
> >
> > def test_prime_number_two(self):
> > result = prime_number(78)
> > self.assertEqual(result, False, msg="Result is invalid")
> >
> > def test_prime_number_three(self):
> > result = prime_number(11)
> > self.assertEqual(result, True, msg="Result is invalid")
> > but once i run my code ,it returns error saying Test Spec Failed
> >
> > Your solution failed to pass all the tests
> > what is actually wrong with my code?
>
> I had to use a hack to bypass it, worked and I moved on to next quiz
Hello, I have this same assignment to create Bank account and I am new to python. please help me out.
Create a class called BankAccount
Create a constructor that takes in an integer and assigns this to a `balance` property.
Create a method called `deposit` that takes in cash deposit amount and updates the balance accordingly.
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"`
Create a subclass MinimumBalanceAccount of the BankAccount class
import unittest
class AccountBalanceTestCases(unittest.TestCase):
def setUp(self):
self.my_account = BankAccount(90)
def test_balance(self):
self.assertEqual(self.my_account.balance, 90, msg='Account Balance Invalid')
def test_deposit(self):
self.my_account.deposit(90)
self.assertEqual(self.my_account.balance, 180, msg='Deposit method inaccurate')
def test_withdraw(self):
self.my_account.withdraw(40)
self.assertEqual(self.my_account.balance, 50, msg='Withdraw method inaccurate')
def test_invalid_operation(self):
self.assertEqual(self.my_account.withdraw(1000), "invalid transaction", msg='Invalid transaction')
def test_sub_class(self):
self.assertTrue(issubclass(MinimumBalanceAccount, BankAccount), msg='No true subclass of BankAccount')
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2016-03-14 11:40 +1100 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.81.1457916052.12893.python-list@python.org> |
| In reply to | #104792 |
On Mon, Mar 14, 2016 at 11:17 AM, <chetam.chetzy@gmail.com> wrote: > Hello, I have this same assignment to create Bank account and I am new to python. please help me out. The best help you can get is: DO THE WORK. You can't simply ask for help without doing any work first. If you want to learn how to write Python code, you will have to write code. Start by writing as much of it as you can, and *then* ask for help, when you get stuck. Otherwise, you're basically asking someone to do your homework for you. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | MRAB <python@mrabarnett.plus.com> |
|---|---|
| Date | 2016-03-14 00:57 +0000 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.82.1457917057.12893.python-list@python.org> |
| In reply to | #104792 |
On 2016-03-14 00:40, Chris Angelico wrote: > On Mon, Mar 14, 2016 at 11:17 AM, <chetam.chetzy@gmail.com> wrote: >> Hello, I have this same assignment to create Bank account and I am new to python. please help me out. > > The best help you can get is: > > DO THE WORK. > > You can't simply ask for help without doing any work first. If you > want to learn how to write Python code, you will have to write code. > Start by writing as much of it as you can, and *then* ask for help, > when you get stuck. Otherwise, you're basically asking someone to do > your homework for you. > I'd also suggest working through a tutorial.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2016-03-14 12:02 +1100 |
| Subject | Re: Need help on a project To :"Create a class called BankAccount with the following parameters " |
| Message-ID | <mailman.83.1457917347.12893.python-list@python.org> |
| In reply to | #104792 |
On Mon, Mar 14, 2016 at 11:57 AM, MRAB <python@mrabarnett.plus.com> wrote: > On 2016-03-14 00:40, Chris Angelico wrote: >> >> On Mon, Mar 14, 2016 at 11:17 AM, <chetam.chetzy@gmail.com> wrote: >>> >>> Hello, I have this same assignment to create Bank account and I am new to >>> python. please help me out. >> >> >> The best help you can get is: >> >> DO THE WORK. >> >> You can't simply ask for help without doing any work first. If you >> want to learn how to write Python code, you will have to write code. >> Start by writing as much of it as you can, and *then* ask for help, >> when you get stuck. Otherwise, you're basically asking someone to do >> your homework for you. >> > I'd also suggest working through a tutorial. It sounds to me like both chetam and the OP are working through a particular course, and this is one of the assignments. Unless the course is abysmally written, it should be capable of teaching the basics without the students having to turn to an external tutorial. However, not knowing the course, I can't say for sure. ChrisA
[toc] | [prev] | [next] | [standalone]
Page 5 of 6 — ← Prev page 1 2 3 4 [5] 6 Next page →
Back to top | Article view | comp.lang.python
csiph-web