Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Product_function
- lists = [1,2,3,4,5]
- def product_function(lists):
- total = 1
- for list in lists:
- if len(lists) > 1:
- total *= list
- return total
- product_function(lists)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement