I have a list of strings:
strings = ['stability', 'of', 'the', 'subdural', 'hematoma', 'she', 'was', 'transferred', 'to', 'the', 'neurosciences', 'floor', 'on', '3', '8', 'after', '24', 'hours', 'of', 'close']
Whats the best way to iterate over the list, detect the numbers and change the type of the element to an int?
In this particular example, strings[13], strings[14] and strings[16], should be recognized as numbers and converted from type str to type int.