def is_number(v):
    """Checks if a given variable is a number (int, float or complex).
    
    Parameters
    ----------
    v : int, float, complex
        Variable to check.
    """
    return (isinstance(v,int) or isinstance(v,float) or isinstance(v,complex))