commit-live-students / 032-sum-items-of-list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write a Python program to sum all the items in a list.

Notes:

  • Define a function which will accept an integer list as a parameter.
  • Iterate through each element and sum up all values.
  • Return addition.

Instructions:

  • Program should be written in file build.py

  • Function name should be solution.

  • Input

     Type:  List
     Value: [2,3,5,8,11]
    
  • Expected Output

      Type:  Integer or float
      Value: 29
    

About


Languages

Language:Python 100.0%