[Tutor] bad name in module

Alan Gauld alan.gauld at btinternet.com
Fri May 10 08:33:58 CEST 2013


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

HTH
-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list