On 05/10/2013 01:45 AM, Jim Mooney wrote:
I have a simple program, below, to create a specified list of random
integers, which works fine.
I saved it to Lib as makeRandomList.py, then imported it to a
sorter.py program, like so. The import doesn't fail:
import makeRandomList
newRandomList = cre
On 10/05/13 06:45, Jim Mooney wrote:
import makeRandomList
newRandomList = createRandomList()
As with any other module you need to specify the module when using its
contents:
newRandomList = makeRandomList.createRandomList()
BTW. A better name for the module is probably just randomlist
I have a simple program, below, to create a specified list of random
integers, which works fine.
I saved it to Lib as makeRandomList.py, then imported it to a
sorter.py program, like so. The import doesn't fail:
import makeRandomList
newRandomList = createRandomList()
But I then get the follow