Compare x and y - solution to Ex. 6.1 in ThinkPython