def SumNum(mylist): the_sum = sum(filter(lambda i: isinstance(i, (int, long, float)), mylist)) return the_sum