diff --git a/algebra/addition/python/add.py b/algebra/addition/python/add.py index 4cd948179..875febdc2 100644 --- a/algebra/addition/python/add.py +++ b/algebra/addition/python/add.py @@ -2,5 +2,11 @@ def add(first,second): """Adds two numbers""" return first + second +def sum(numList): + result=0 + for i in range(len(numList)): + result+=numList[i] + return result + if __name__ == "__main__": add(2,3)