Here's a simple function to do simple math operations, when i call this from other program using import, output i get is none. When i remove def function, everything is working fine. What's the problem with defining this function? I'm new to python.
def calci(a, op, b): 
    if op == '+':
        c = a + b
    elif op == '-':
        c = a-b
    elif op == '*':
        c= a*b
    elif op =='/':
        if(b == 0):
            print('can\'t divide')
            c = a/b
            print('value is',c)
            return c
result  = calci(12,'+', 12)
print(result)  nter code here