mylist = [ '0.45', '6.7', '0.3']
mylist = list(map(float, mylist))
print(mylist)
####################OUPUT#######################
[ 0.45, 6.7, 0.3]
[float(i) for i in lst]
# Basic syntax:
[str(x) for x in list_of_floats]
# Example usage:
list_of_floats = [1.2, 1.7, 3.141592654]
[str(x) for x in list_of_floats]
--> ['1.2', '1.7', '3.141592654']