Example #1
0
import b, a
print(b.name, b.age)
print(a.x, a.y, a.add(100, 200))
Example #2
0
File: b.py Project: bodable/home
from a import add
add(1, 2)
Example #3
0
import a
from pack import c
print a.add(3, 4)
print c.mul(5, 4)
Example #4
0
File: b.py Project: ESMAT001/python
import a
print(a.add(1, 2))
Example #5
0
import a

x = int(input('Enter a number:'))
y = int(input('Enter a number:'))

print("The answer is " + str(a.add(x,y)))
print("The answer is " + str(a.sub(x,y)))
print("The answer is " + str(a.mult(x,y)))
print("The answer is " + str(a.div(x,y)))
Example #6
0
import a
print(a.username, a.password)
k = a.add(10, 20)
print(k)
m = a.sub(200, 190)
print(m)
s = a.sample()
l = a.login()
Example #7
0
import a

b = a.add(5, 6)
print(b)
Example #8
0
def test_add():
    assert add(2,3)==5