I\'m trying to learn Python and i have a problem, so if i have something like that:
data_l = [\'data\', \'18.8\', \'17.9\', \'0.0\']
How d
You can use the str.isdigit method and a list comprehension:
str.isdigit
list = [int(s) if s.isdigit() else s for s in list]
Here you have a live example