Hello everyone,
From time to time I spot an asterisk (*) used in the Python code
_outside_ the usual *args or **kwargs application.
E.g. here: http://www.norvig.com/python-lisp.html
def transpose (m):
return zip(*m)
transpose([[1,2,3], [4,5,6]])
[(1, 4), (2, 5), (3, 6)]
What does *m mean
From time to time I spot an asterisk (*) used in the Python code
_outside_ the usual *args or **kwargs application.
E.g. here: http://www.norvig.com/python-lisp.html
def transpose (m):
return zip(*m)
transpose([[1,2,3], [4,5,6]])
[(1, 4), (2, 5), (3, 6)]
What does *m mean in this
On 24 Jan., 13:31, mk mrk...@gmail.com wrote:
Hello everyone,
From time to time I spot an asterisk (*) used in the Python code
_outside_ the usual *args or **kwargs application.
E.g. here:http://www.norvig.com/python-lisp.html
def transpose (m):
return zip(*m)
transpose([[1,2,3],