Python / Find a sum of array of number without using builtins

The original task was taken from
Given a list of numbers, find the sum of these numbers. The solution should not contain any of the banned words.
The list of banned words is as follows:

  • sum
  • import
  • for
  • while
  • reduce
Input: A list of numbers.
Output: The sum of numbers. 

My solution:

No comments:

Post a Comment