+ 4
How to get numbеrs from list of strings
listee = str['pol 1', 'lon 2.4', 'pol 3', 'lon 2.0'] print (eval(listee))
5 Antworten
+ 3
What is your expected output?
is it
listeenum = [1,2.4,3,2]
+ 2
i need to get list with int and floats from this list for instance. how can i do it?
+ 2
eval doesn't work
+ 1
for word in listee:
newlist.append(word.split[1])