Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert string list to float

mylist = [ '0.45', '6.7', '0.3']
mylist = list(map(float, mylist))
print(mylist)
####################OUPUT#######################
[ 0.45, 6.7, 0.3]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #list #float
ADD COMMENT
Topic
Name
3+8 =