Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def func(Input):
- print("Input Array: ")
- print(Input)
- product = 1
- for num in Input:
- product *= num
- Output = []
- for i in range(len(Input)):
- Output.append(product / Input[i])
- print("Output Array: ")
- print(Output)
- return Output
- func([1, 2, 3,4,5])
- func([3, 2, 1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement