Run
# Given a list of strings my_list = ['1.23', '2.05', '3.14', '4.7'] # Take an empty list to store the float values list_float = [] # Convert list of strings into list of floats for x in my_list: list_float.append(float(x)) print(list_float)
Output