If you are doing:
import keer
, try:

keer.times(4, 5) Instead

If you do:

 from keer import times

you cal use:

times(4, 5)

On 06/02/2008, frankje <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> I created the following module 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)
>
> I get the following message:
>
> >>> times (4,5)
> Traceback (most recent call last):
> File "<pyshell#4>", line 1, in <module>
> times (4,5)
> NameError: name 'times' is not defined
> >>>
>
> What am I doing wrong?
>
>
> grtz, Frank
>
>
> --
> View this message in context:
> http://www.nabble.com/module-is-not-working-tp15306303p15306303.html
> Sent from the Python - python-nl mailing list archive at Nabble.com.
>
> _______________________________________________
> Python-nl mailing list
> Python-nl@python.org
> http://mail.python.org/mailman/listinfo/python-nl
>



-- 
Michael Connors
_______________________________________________
Python-nl mailing list
Python-nl@python.org
http://mail.python.org/mailman/listinfo/python-nl

Antwoord per e-mail aan