Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def arrayProduct(arr):
- s = 1
- for a in arr:
- s ?? a # REPLACE ??
- return s
- if __name__ == "__main__":
- arr = [1,2,3,4,5]
- x = arrayProduct(arr)
- assert arrayProduct(arr) == 120, ("product of array %s must be 120" % arr)
Advertisement
Add Comment
Please, Sign In to add comment