import math


def slopeAngle(p1,p2):   
    """Returns the minimum angle the line connecting two points makes with the x-axis.
    Args:
        p1 ([tuple]): point p1
        p2 ([tuple]): point p2
    Returns:
        [float]: minimum angle between x-axis and line segment joining p1 and p2
    """
    try :
        m = (p2[1]-p1[1])/(p2[0]-p1[0])
    except ZeroDivisionError:
        m = 0
    return abs(math.degrees(math.atan(m)))