[python-nl] module is not working

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Wed Feb 6 09:34:59 CET 2008


-On [20080206 09:31], frankje (spruit_frank at hotmail.com) wrote:
>
>keer.py:
>
>def times (x,y):
>return x*y
>
>Now, when I am in IDLE at the prompt, and type: import keer
>And then for example: times (4,5)

from keer import times
times(4, 5)

or

import keer
keer.times(4, 5)

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/
We have met the enemy and they are ours...


More information about the Python-nl mailing list