#task12

Pubblicato il: 03 gennaio 2021
sul canale di: Python Developer
169
4

#task12
def function12():
Create the following pattern without hardcoding. Use only numpy functions and the below input array arr.
HINT: use stacking concept

arr = np.array([1,2,3])
ans = #write your code here

return ans

"""
Expected Output:
array([1, 1, 1, 2, 2, 2, 3, 3, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3])
"""


In questa pagina del sito puoi guardare il video online #task12 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Python Developer 03 gennaio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 169 volte e gli è piaciuto 4 spettatori. Buona visione!