for array in ([7, 8, 10, "Hello", 5, 5], ["1", "2", "3", "4", 5]): print((lambda x:[m(t for t in x if str(t)!=t)for m in(min,max)])(array))