79757264

Date: 2025-09-06 00:59:46
Score: 1.5
Natty:
Report link

Using numpy.indices and numpy.stack

import numpy
shape = (6,2,8,7)
array_of_positions = numpy.stack(numpy.indices(shape), axis = len(shape))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Christopher Pratt