Skip to content

Instantly share code, notes, and snippets.

@hackjoy
Last active December 11, 2015 08:49
Show Gist options
  • Select an option

  • Save hackjoy/4576122 to your computer and use it in GitHub Desktop.

Select an option

Save hackjoy/4576122 to your computer and use it in GitHub Desktop.
Return the sum of multiplying all numbers in an array
def product_list(numbers):
result = 1
for number in numbers
result = result * number
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment