def my_abs(n):
    if isinstance(n, int) or isinstance(n, float):
        if n >= 0: 
            return n
        else:    
            return -n
    else:
        print('invalid value')



print(my_abs(4))
print(my_abs(59))
print(my_abs(-100))
print(my_abs('a'))

def quadratic(a, b, c): 
    pass
    0 == a *x**2 + b *x + c
print(quadratic(1, 2, 3))

    d == (b**2) - (4*a*c)
    

    sol1 == (-b-cmath.sqrt(d))/(2*a)
    sol2 == (-b+cmath.sqrt(d))/(2*a)

    print(quadratic(1,2,3))




input()