Python2 and Python3, both One-Liner and Difference!
I found the PEEP3113 saying that Python3 remove the tuple parameter unpacking. \nhttps://www.python.org/dev/peps/pep-3113/#no-loss-of-abilities-if-removed\n\nSo
I found the `PEEP3113` saying that Python3 remove the tuple parameter unpacking. \nhttps://www.python.org/dev/peps/pep-3113/#no-loss-of-abilities-if-removed\n\nSo there are slight difference between Py2 and Py3 answer:\n* Python2:\n```return sorted([[x, y] for x in range(R) for y in range(C)], key=lambda (r, c): abs(r - r0) + abs(c - c0))```\n\n* Python 3:\n```return sorted([(i, j) for i in range(R) for j in range(C)], key=lambda x: abs(x[0] - r0) + abs(x[1] - c0))```\n\n\n\t\tPy2 tuple: lambda (x, y): x + y \n\t\twill be translate into Py3: lambda x_y: x_y[0] + x_y[1]\n\nThank you for reading this.
[]