import a import my_math print(my_math.add(2, 3)) print(my_math.mul(2, 3))
import a from my_math import add, mul #import my_math #print(my_math.add(2,3)) #print(my_math.mul(2,3)) print(add(2, 3)) print(mul(2, 3)) import random #컨트롤 누르고 명령어 누르면 상세보기 나옴
def test_mul2(): expected = -10 ret = math.mul(2, -5) assert ret == expected
def test_mul(): expected = 10 ret = math.mul(2, 5) assert ret == expected
# this program is used for exercise module import my_math print my_math.add(1, 2, 3) print my_math.sub(10, 9, my_math.add(7, 8)) print my_math.mul(1, 2)
import a import my_math import random print(my_math.add(5, 6)) print(my_math.mul(2, 64))