def real(z):
    """ Gets the real part of a given number.

        Parameters
        ----------
        z : Python numeric type or AlComplex

        Returns
        -------
        float
    """
    return z.real