Example #1
0
def loop():
    i = 0
    a = 0.0
    while i < 1000000000:
        a += 1.0
        add(a, a)
        i += 1
Example #2
0
def add(a, b, c):
    return a + b + c


from file1 import add
print(add(2, 4))
Example #3
0
import file1

print(file1.A)

ans = file1.add(2, 3)
print(ans)
Example #4
0
import file1
print(file1.add(4, 5))
Example #5
0
import file1
val1 = int(input("Enter a:"))
val2 = int(input("Enter b:"))
operation = (input("Enter Operation:"))

if __name__ == '__main__':
    if operation == "+":
        print(file1.add(val1, val2))
    if operation == "-":
        print(file1.sub(val1, val2))
    if operation == "*":
        print(file1.mul(val1, val2))
    if operation == "/":
        print(file1.div(val1, val2))