reset password
Author Message
tandluong
Posts: 7
Posted 20:11 Oct 05, 2017 |

I am slightly confused on the last question in the lab assignment. It says "create a function that multiplies the first three elements of a list of Ints added together."
Can anyone clarify? Are we supposed to add the three elements of the list then multiply them to the list?
So if we had a list [1,2,3] then their sum would be 6, then we would multiply it back to the list such that it would be [6,12,18]?
Or would it be 1*2 + 2*3 + 1*3?

jingchao
Posts: 25
Posted 20:15 Oct 05, 2017 |

😂😂 I thought we are only returning one value!!! I did [a,b,c] then I multiply a b c and return their product!! 😂

htmnnew
Posts: 5
Posted 22:11 Oct 05, 2017 |

yeah I was just thinking the same. I just multiplied first 3 or 2 or 1 and returned it. I thought that's what he wanted us to do ¯\(ツ)/¯

msargent
Posts: 519
Posted 08:06 Oct 06, 2017 |

Don't worry about it. The question was unclear.