[Tutor] Help with class example
bgailer at gmail.com
Sat Oct 27 01:28:26 CEST 2012
On 10/18/2012 7:59 PM, Frank Pontius wrote:
> Help with class example
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 typesetting
Use a text editor, or type the code directly into IDLE.
> 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
> Using'import random'and random.randrange infunction,returning #.
> import random
> def RandomNumberGen ():
> if random.randrange(0, 2) == 0:
> Simple enough, but running in my Python 2.7.3IDLE-it will not even
> run,and give syntax(red char box)error at the X above.
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
Chapel Hill NC
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor