Write a script to perform the product of 3 numbers entered by the user.
will get reported if answer only for points
Answers
Answered by
4
def prod(nums):
prod = 1
for n in nums:
prod *= n
return prod
nums = [int(n) for n in input("enter 3 nums: ").split()]
print(f"product: {prod(nums)}")
Similar questions