Answer:
See explaination for the details.
Explanation:
Code:
def create_3D(H, W, D):
result = []
for i in range(D):
result.append([])
for j in range(H):
result[i].append([])
for k in range(W):
result[i][j].append(i+j+k)
return result
print(create_3D(2, 3, 4))
Check attachment for onscreen code.