#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])
"""
On this page of the site you can watch the video online #task12 with a duration of hours minute second in good quality, which was uploaded by the user Python Developer 03 January 2021, share the link with friends and acquaintances, this video has already been watched 169 times on youtube and it was liked by 4 viewers. Enjoy your viewing!