Advertisement
ancestor_tunji

#Product_function

Feb 22nd, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. #Product_function
  2. lists = [1,2,3,4,5]
  3. def product_function(lists):
  4.     total = 1
  5.     for list in lists:
  6.         if len(lists) > 1:
  7.             total *= list
  8.     return total
  9.    
  10.        
  11.    
  12. product_function(lists)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement