from math import sqrt, atan, degrees def euclidean(x,y): return sqrt(x**2 + y**2) print [(euclidean(x,y),degrees(atan(float(y)/x))) for (x,y) in [(1,2),(2,3),(3,4)] if euclidean(x,y) > 3.0]