frankje wrote:
> What am I doing wrong?
>
Nitpick: Engels praten op de Nederlandse python lijst :)
Wichert.
--
Wichert Akkerman <[EMAIL PROTECTED]> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
___
Bedankt voor de mailtjes, ik kom er nu wel uit (keer.times).
grtn, Frank
ps. Sorry voor het engels, ik was even in de war met een soortgelijk
engelstalig forum...
--
View this message in context:
http://www.nabble.com/module-is-not-working-tp15306303p15306424.html
Sent from the Python - pytho
On Wed, 2008-02-06 at 00:30 -0800, frankje 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)
> T
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
-On [20080206 09:31], frankje ([EMAIL PROTECTED]) 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 We
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 "", line 1, in
times (4,5)
NameError: