## hw 3.3: What should the code end with exactly?

Hi, confident to have the correct solution for the product list. However, I feel uncertain what the code should terminate with? My 3 considerations:

1. simply "return i" which computes the value
2. "product_list"
3. "print product_list
4. Using one of the examples "print product list ([1,2,3,4])"

Would be devastated to get it graded "incorrect" just because of this ...

newcoder
04

accept rate: 50%

#and returns a number that is
#the result of multiplying all
#those numbers together.

Emphasis added for clarity! Do not over-think it, return means just that, return

Angel
7.1k632112

def product_list(pr_list):
#
# some code
#


Rob Barnes-3 ♦
19.3k1068205

i think it will be wrong if you just print it from the function - it needs to be returned before printing

wobbly-1
30241326

Question text:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

×29,763
×1,798
×46
×10