Write a NumPy program to combine last element with first element of two given ndarray with different shapes. import numpy as np array1 = ['PHP','JS','C++'] array2 = ['Python','C#', 'NumPy']...


Write a NumPy program to combine last element with first element of two given ndarray with different shapes.


import numpy as np
array1 = ['PHP','JS','C++']
array2 = ['Python','C#', 'NumPy']
print("Original arrays:")
print(array1)
print(array2)
result  =  #TO DO -- Complete the Code
print("\nAfter Combining:")
print(result)


Intended output


Original arrays:
['PHP', 'JS', 'C++']
['Python', 'C#', 'NumPy']


After Combining:
['PHP' 'JS' 'C++Python' 'C#' 'NumPy']



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here