Re: [Tutor] Help with class example

2012-11-06 Thread Prasad, Ramit
Ramit Prasad wrote: > You would be better off trying to run this from the command > line. I just wanted to clarify on this. The reason you will have a better results running this from the command line is that Python will normally give you very good error traceback. An IDE might hide or obscure t

Re: [Tutor] Help with class example

2012-11-05 Thread Dave Angel
On 11/05/2012 06:07 PM, Prasad, Ramit wrote: > Frank Pontius wrote: >> Sent: Saturday, October 27, 2012 12:27 PM >> To: d...@davea.name; bgai...@gmail.com >> Cc: tutor@python.org >> Subject: Re: [Tutor] Help with class example >> >> Here ya go! >> Can

Re: [Tutor] Help with class example

2012-11-05 Thread Prasad, Ramit
Frank Pontius wrote: > Sent: Saturday, October 27, 2012 12:27 PM > To: d...@davea.name; bgai...@gmail.com > Cc: tutor@python.org > Subject: Re: [Tutor] Help with class example > > Here ya go! > Can't do what you want as this is a programmatic error from interrupter. 

Re: [Tutor] Help with class example

2012-10-27 Thread bob gailer
On 10/27/2012 4:51 PM, Frank Pontius wrote: But, this is an if. When replying please put your response after the text it applies to, and delete all irrelevant text. In other words avoid "top-posting". Sorry I really messed up my reply! The offending line is: coin = random.randragge(0,2): get

Re: [Tutor] Help with class example

2012-10-26 Thread Dave Angel
On 10/18/2012 07:59 PM, Frank Pontius wrote: > Hello, > I'm taking a beginners course on Python. > > Have class example which is to be used in H/W, which I can't get to work. > Thus I figure the example is wrong. But I need this to get H/W done. > > Using 'import random' and random.randrange in fu

Re: [Tutor] Help with class example

2012-10-26 Thread bob gailer
On 10/18/2012 7:59 PM, Frank Pontius wrote: Help with class example Hello, Hi - this just showed up in my mailbox. Perhaps there was a delay getting it posted. The "" around tails and heads are not ascii quote characters. They are what some word processors change ascii quotes into to meet t

[Tutor] Help with class example

2012-10-26 Thread Frank Pontius
Hello, I'm taking a beginners course on Python. Have class example which is to be used in H/W, which I can't get to work. Thus I figure the example is wrong. But I need this to get H/W done. Using 'import random' and random.randrange in function, returning #. import random def RandomNumberGen