def angle(self, vector):
        """Return the angle between two vectors in degrees."""
        return math.degrees(
            math.acos(
                self.dot(vector) /
                (self.magnitude() * vector.magnitude())
            )
        )
def angle ( self , vector ) : return math . degrees ( math . acos ( self . dot ( vector ) / ( self . magnitude ( ) * vector . magnitude ( ) ) ) )
Return the angle between two vectors in degrees.