Re: [Tutor] Using import

2014-05-04 Thread Peter Otten
Felipe Melo wrote: [Felipe, please post plain text, your code examples are unreadable] > Hello, > I'm starting with Python and I'm trying to work with "import" but I'm > having a problem. I have the file c.py (that works when executed) with a > function performing a multiplication: > def mult(a,x

[Tutor] Using import

2014-05-04 Thread Felipe Melo
Hello, I'm starting with Python and I'm trying to work with "import" but I'm having a problem. I have the file c.py (that works when executed) with a function performing a multiplication: def mult(a,x): resul=a*xreturn(resul)print 'test print'ent1=2ent3=3dedo=mult(ent1,ent3)print 'resu