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


Groups > comp.lang.python > #37775 > unrolled thread

Algorithm. Tony Gaddis book 2 Starting python3

Started bygeorge.15@talktalk.net
First post2013-01-27 08:29 -0800
Last post2013-01-28 20:45 -0800
Articles 7 — 6 participants

Back to article view | Back to comp.lang.python


Contents

  Algorithm. Tony Gaddis  book 2 Starting python3 george.15@talktalk.net - 2013-01-27 08:29 -0800
    Re: Algorithm. Tony Gaddis book 2 Starting python3 Joel Goldstick <joel.goldstick@gmail.com> - 2013-01-27 12:24 -0500
    Re: Algorithm. Tony Gaddis  book 2 Starting python3 Michael Torrie <torriem@gmail.com> - 2013-01-27 10:46 -0700
    Re: Algorithm. Tony Gaddis  book 2 Starting python3 shi <shi@somewhere.be> - 2013-01-27 20:25 +0100
      Re: Algorithm. Tony Gaddis  book 2 Starting python3 shi <shi@somewhere.be> - 2013-01-27 20:27 +0100
    Re: Algorithm. Tony Gaddis  book 2 Starting python3 Gene Heskett <gheskett@wdtv.com> - 2013-01-27 13:07 -0500
    Re: Algorithm. Tony Gaddis  book 2 Starting python3 rh <richard_hubbe11@lavabit.com> - 2013-01-28 20:45 -0800

#37775 — Algorithm. Tony Gaddis book 2 Starting python3

Fromgeorge.15@talktalk.net
Date2013-01-27 08:29 -0800
SubjectAlgorithm. Tony Gaddis book 2 Starting python3
Message-ID<c45b5613-a20d-4e65-8a84-c2fbc0ff81bc@googlegroups.com>
Hi
Question 3 Chp2 Page 76
Adds2 to a and assigns the result to b.
I have several attemtps,would like to check my answer.help please
At 80 i need all the help i can find.
Thanks George Smart

[toc] | [next] | [standalone]


#37776 — Re: Algorithm. Tony Gaddis book 2 Starting python3

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2013-01-27 12:24 -0500
SubjectRe: Algorithm. Tony Gaddis book 2 Starting python3
Message-ID<mailman.1113.1359307497.2939.python-list@python.org>
In reply to#37775

[Multipart message — attachments visible in raw view] — view raw

On Sun, Jan 27, 2013 at 11:29 AM, <george.15@talktalk.net> wrote:

> Hi
> Question 3 Chp2 Page 76
> Adds2 to a and assigns the result to b.
> I have several attemtps,would like to check my answer.help please
> At 80 i need all the help i can find.
> Thanks George Smart
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Your question is not clear.  Neither is your subject line.  It seems that
maybe you are using a book written by Tony Gaddis.  I googled that and
didn't come up with anything.  Anyway, I don't have that book.  You will
get an answer to your question if you ask it more clearly -- perhaps quote
from the book.  Also, paste into your question the code you have tried and
the results you have gotten.


-- 
Joel Goldstick
http://joelgoldstick.com

[toc] | [prev] | [next] | [standalone]


#37778

FromMichael Torrie <torriem@gmail.com>
Date2013-01-27 10:46 -0700
Message-ID<mailman.1114.1359308800.2939.python-list@python.org>
In reply to#37775
On 01/27/2013 09:29 AM, george.15@talktalk.net wrote:
> Hi
> Question 3 Chp2 Page 76
> Adds2 to a and assigns the result to b.
> I have several attemtps,would like to check my answer.help please
> At 80 i need all the help i can find.
> Thanks George Smart

Awesome that you are learning Python!  Indeed it is for all ages!  What
does the question say, exactly (maybe quote it)?  And definitely post
your answer to the question as well.  It's better for us to work with
what you have already.

Michael

[toc] | [prev] | [next] | [standalone]


#37786

Fromshi <shi@somewhere.be>
Date2013-01-27 20:25 +0100
Message-ID<ke3uvm$g8d$1@speranza.aioe.org>
In reply to#37775
Hello George,

I found the book you're referring to via google (searching for: tony 
gaddis starting out with python). The question is this:

3. Write assignment statements that perform the following operations 
with the variables a,b and c.
a. Adds 2 to a and assigns the result to b
b. Multiplies b times 4 and assigns the result to a
c. Divides a by 3.14 and assigns the result to b
d. Subtracts 8 from and assigns the result to a

The typical way this list helps in homework assignments is
for the student to post his solution first, and then
let someone explain if/why something is wrong, and how to
go about the right solution.

I think you will have a lot of fun learning python.
It's very rewarding.

Best regards,
Stefaan.

[toc] | [prev] | [next] | [standalone]


#37787

Fromshi <shi@somewhere.be>
Date2013-01-27 20:27 +0100
Message-ID<ke3v39$g8d$2@speranza.aioe.org>
In reply to#37786
> d. Subtracts 8 from and assigns the result to a

this should read: "Subtracts 8 from b and assigns the result to a"

Funny how none of the assignments involve a variable c, despite the 
question :)

[toc] | [prev] | [next] | [standalone]


#37796

FromGene Heskett <gheskett@wdtv.com>
Date2013-01-27 13:07 -0500
Message-ID<mailman.1126.1359361881.2939.python-list@python.org>
In reply to#37775
On Sunday 27 January 2013 13:05:27 george.15@talktalk.net did opine:
Message additions Copyright Sunday 27 January 2013 by Gene Heskett

> Hi
> Question 3 Chp2 Page 76
> Adds2 to a and assigns the result to b.
> I have several attemtps,would like to check my answer.help please
> At 80 i need all the help i can find.
> Thanks George Smart

<sniff, sobs>
Darn, I've just been dethroned from my resident oldest fart on this list 
throne, I'm only 78.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views 
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
Thyme's Law:
	Everything goes wrong at once.
I was taught to respect my elders, but its getting 
harder and harder to find any...

[toc] | [prev] | [next] | [standalone]


#37852

Fromrh <richard_hubbe11@lavabit.com>
Date2013-01-28 20:45 -0800
Message-ID<mailman.1164.1359434775.2939.python-list@python.org>
In reply to#37775
On Sun, 27 Jan 2013 08:29:45 -0800 (PST)
george.15@talktalk.net wrote:

> Hi
> Question 3 Chp2 Page 76
> Adds2 to a and assigns the result to b.
> I have several attemtps,would like to check my answer.help please
> At 80 i need all the help i can find.
> Thanks George Smart

This is one I have looked at recently, written by a teacher:
http://www.greenteapress.com/thinkpython/html/index.html

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web