Answers for "python sum only numbers"

2

sum of any numbers in python

sum(list(map(int,input().split())))
Posted by: Guest on December-02-2020
0

python sum only numbers

def SumNum(mylist):
    the_sum = sum(filter(lambda i: isinstance(i, (int, long, float)), mylist))
    return the_sum
Posted by: Guest on August-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language