define elements of a list as float not string python code example
Example 1: convert every element in list to string python
[str(i) for i in mylst]
Example 2: python string list to float
[float(i) for i in lst]
[str(i) for i in mylst]
[float(i) for i in lst]