Is there a Python equivalent of range(n) for multidimensional ranges? Is there a Python equivalent of range(n) for multidimensional ranges? numpy numpy