Although list comprehension is great tool, it's not what OP wants :-)
Sorry, Dead_EyE, I don't mean to snap, but obviously OP is confused enough and you are not helping by suggesting list comprehension.
And because this looks very much like homework we don't give the solution without effort from OP
Sorry, Dead_EyE, I don't mean to snap, but obviously OP is confused enough and you are not helping by suggesting list comprehension.
(Mar-08-2020, 11:13 AM)Olavv Wrote: How can I multiply all elements in a list together with a for loop?from their question, if they have [1, 2, 3] the result they look for is 1*2*3, i.e. 6
And because this looks very much like homework we don't give the solution without effort from OP
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs