# Write a Python program to Ways to convert array of strings to array of floats # Python code to demonstrate converting# array of strings to array of floats# using astypeimport numpy as np# initialising arrayini_array = np.array(["1.1", "1.5", "2.7", "8.9"])# printing initial arrayprint ("initial array", str(ini_array))# converting to array of floats# using np.astyperes = ini_array.astype(np.float)# printing final resultprint ("final array", str(res))