Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def product(a_list_of_numbers):
- initial = 1
- for number in a_list_of_numbers:
- initial*=number
- print(initial)
- product([1,4,7,8,9,10,12]) #Example (The argument must be a list strictly containing numbers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement