Looking to find max from the combine list as follows:
[\'filename1\', 1696, \'filename2\', 5809,....]
I have tried following:<
The same isinstance idea can be applied to a filter:
f = ['filename1', 1696, 'filename2', 5809]
max(filter(lambda i: isinstance(i, int), f))
Also, if you need to include more than one data type in your comparison, e.g.: floats, you can simple use a tuple to validate the the data to be compared:
max(filter(lambda i: isinstance(i, (int, float)), f))