Bosala fragment ya code pona ko produire array n-dimensionnel.
 Tala fragment ya code ya Python oyo esengi na mosaleli motango ya ba dimensions mpe taille ya array, mpe sima ebimisaka array n-dimensionnel na NumPy: ```python import numpy as np n = int(input("Kotisa motango ya dimensions: ")) size = int(input("Kotisa taille ya array na dimension moko na moko: ")) array = np.zeros([taille]*n) print(f'{n}-dimensional array:' ) print(array) ``` Code oyo esali array `n`-dimensionnel na kosalelaka méthode `zéros` oyo euti na NumPy, na ba éléments `size` na dimension moko na moko. Array oyo euti na yango enyatami na console. Okoki ko vérifier `shape` ya array pona ko confirmer que epesaka ba résultats oyo olingi: ```python print(array.shape) ```