ImportError: No module named multipli

yahya Kacem fuj.tyoli at gmail.com
Sun Mar 24 11:35:29 EDT 2013


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.



More information about the Python-list mailing list