import numpy as np
arr1 = np.ones (2, dtype=float)
print("1D Array with ones ")
print(arr1)

#[1. 1.]
import numpy as np
arr1 = np.ones (2, dtype=float)
print("1D Array with ones ")
print(arr1)

#[1. 1.]