Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def product(list1): #function named product with argument named list
- result = 1 #set result as 1
- for x in list1:
- result = result * x
- print(result)
- sage = [1,3,2]
- product(sage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement