Write a method named `getExponent(n,p)` that returns the largest integer exponent `x` such that p^(x) evenly divides `n`. if `p<=1` the method should return `null`/`None` (throw an `ArgumentOutOfRange` exception in C#).
def get_exponent(n, p):
    if p <=1 : return 
    return max([i for i in range(1,int(abs(n)**.5)) if n% (p ** i)==0],default=0)
def get_exponent(n, p):
    if p <=1 : return 
    return max([i for i in range(1,int(abs(n)**.5)) if n% (p ** i)==0],default=0)