# 0613.py class punto (list): def __init__ (A,x,y): A.extend([x,y]) def __le__ (A,B): (x,y)=A; (u,v)=B; return (x<=u) and (y<=v) a=punto(3,5); b=punto(4,7); c=punto(4,1) print (a<=b) # True if a<=c: print ('a<=c') else: print ('non a<=c') # non a<=c