Answers for "Broadcasting with NumPy Arrays Single dimension array Example"

0

Broadcasting with NumPy Arrays Single dimension array Example

# welcome to softhunt.net
import numpy as np
a = np.array([34, 23, 12]) # 1x3 Dimension array
print(a)
b = 5
print(b)

# Broadcasting happened because of
# miss match in array Dimension.
c = a + b
print(c)
Posted by: Guest on April-21-2022

Code answers related to "Broadcasting with NumPy Arrays Single dimension array Example"

Python Answers by Framework

Browse Popular Code Answers by Language