Modernize turtledemo with conditional expressions; remove duplicate line.