ImportError: No module named multipli
Mark Lawrence
breamoreboy at yahoo.co.uk
Sun Mar 24 12:19:29 EDT 2013
On 24/03/2013 16:03, yahya Kacem wrote:
> On Sunday, March 24, 2013 4:35:29 PM UTC+1, yahya Kacem wrote:
>> Hi, i have this 2 files:
>>
>>
>>
>> file named multipli:
>>
>>
>>
>> #!/usr/bin/python3.2
>>
>> #-* - coding : utf-8 -*
>>
>> def table(nb, max):
>>
>> i = 0
>>
>> while i < max:
>>
>> print(i + 1, " * ", nb, "= ", (i + 1) * nb)
>>
>>
>>
>> and file naled test:
>>
>>
>>
>> #!/usr/bin/python3.2
>>
>> # -* - coding : utf-8 -*
>>
>> import os
>>
>> import sys
>>
>> from multipli import table
>>
>> table(3, 20)
>>
>> os.system("pause")
>>
>>
>>
>> when i run this:
>>
>>
>>
>> python3 test
>>
>>
>>
>> I get this error:
>>
>> Traceback (most recent call last):
>>
>> File "test", line 5, in <module>
>>
>> from multipli import table
>>
>> ImportError: No module named multipli
>>
>> both files are in the same directory.
>>
>> any help thanks in advance.
>
> Thanks that did it.
>
May I ask what did it?
Please read this as it helps prevent the bill from my optician soaring
http://wiki.python.org/moin/GoogleGroupsPython
--
Cheers.
Mark Lawrence
More information about the Python-list
mailing list