import numpy as np
a = np.arange(6).reshape(2,3)
np.meshgrid(*[np.arange(x) for x in a.shape])
What is the role of the asterisk before the parameter?
why does it works? what dose it mean adding an asterisk before list comprehension as a parameter?