pythag function
implement mylists:filter