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

Antwoord per e-mail aan