How can I identify decimal numbers in a list of strings, in order to remove them? Ideally in a single operation, something like content = [x for x in content if not x.isdecimal()]
(Sadly, isdecimal() and isnumeric() don't work here)
For instance, if content = ['55', 'line', '0.04', 'show', 'IR', '50.5', 'find', 'among', '0.06', 'also', 'detected', '0.05', 'ratio', 'fashion.sense', '123442b']
I would like the output to be content = ['line', 'show', 'IR', 'find', 'among', 'also', 'detected', 'ratio', 'fashion.sense', '123442b']