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

 0 Hi, confident to have the correct solution for the product list. However, I feel uncertain what the code should terminate with? My 3 considerations: simply "return i" which computes the value "product_list" "print product_list Using one of the examples "print product list ([1,2,3,4])" Would be devastated to get it graded "incorrect" just because of this ... asked 10 Mar '12, 13:15 newcoder 0●4 accept rate: 50%

 1 Read the top comments, carefully... #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 answered 10 Mar '12, 13:21 Angel 7.1k●6●32●112
 1 def product_list(pr_list): # # some code # return the_answer  answered 10 Mar '12, 13:27 Rob Barnes-3 ♦ 19.3k●10●68●205
 0 i think it will be wrong if you just print it from the function - it needs to be returned before printing answered 10 Mar '12, 13:18 wobbly-1 302●4●13●26
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

×27,852
×1,796
×45
×9