How can I find and extract integers (without using the re module) from a list of strings and integers.
['My', '2', 'favorite', 'numbers', 'are', '42', 'and', '69']
How do I extract all the integers (2,42,69) in form of a list? Desired output:
[2, 42, 69]