N-dimensional N^N array filled with N
Python, 32 bytes



lambda n:eval('['*n+'n'+']*n'*n)


Try it online!

Makes a string like "[[[n]*n]*n]*n" with n multiplcations, and evaluates it as Python code. Since the evaluation happens within the function scope, the variable name n evaluates to the function input.