\'\'\'A = [1,2,\'a\',3,4,5,9,8]
total = 0
for i in A:
List = [x for x in A if isinstance(x, int)] for t in List: total = total + t