Page 37 - Python Cơ Bản
P. 37

def cong(a, b):

               return a + b



           def tru(a, b):

               return a - b



           def nhan(a, b):

               return a * b






          7EY чɹ  XϰS QШX JMPI Gɹ XɱR  myexample.py   XVSRK GɽRK XLš

          QдG ZЪM JMPI  mymath.py  ZкE XϰS Ю XVɱR  Gɹ RШM HYRK RLš


          WEY






           import mymath



           num1 = 1

           num2 = 2



           print 'Tong hai so la: ', mymath.cong(num1, num2)





          :ɧS GSQQERH PMRI  XLрG LMЖR KМM JMPI Q]I\EQTPI RLš WEY
   32   33   34   35   36   37   38   39   40   41   42