Hi i need to split a list that contains string. Some of the strings are words, other are numbers.
I have to float them
x = ['2','45','0.34','4.5','text','wse','56',]
what i tried:
FloatList = [x for x in Mylist if isinstance(x, float)]
but it prints empty list:
[]
Can you point me where am I wrong.
So I need to filter the words from the number strings, float the strings in sep. list