Beispiel #1
0
Datei: b.py Projekt: sgmpy/TIL
import a
import my_math

print(my_math.add(2, 3))
print(my_math.mul(2, 3))
Beispiel #2
0
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
#컨트롤 누르고 명령어 누르면 상세보기 나옴
Beispiel #3
0
def test_mul2():
	expected = -10
	ret = math.mul(2, -5)
	assert ret == expected
Beispiel #4
0
def test_mul():
	expected = 10
	ret = math.mul(2, 5)
	assert ret == expected
Beispiel #5
0
# 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)
Beispiel #6
0
Datei: b.py Projekt: pjh6315/TIL
import a
import my_math
import random

print(my_math.add(5, 6))
print(my_math.mul(2, 64))