title: How to simplify in a single line FOR loop the multiplication of the numbers of a list?
body: <p>I want to get the result of multiplying all the numbers that are into a list, using a for loop written in a single line OR using a Lambda funtion</p>
  
  <p>I've solved it easily using a classic for loop, but I want to simplify the expression. The idea is not to use libraries.</p>
  
  <p>My current code:</p>
  
  <pre><code>num_list = [5,7,3,8]
  
  R = 1;
  for num in num_list:
      R *= num
  
  print(R)
  &gt;&gt;&gt; 840
  </code></pre>
  
  <p>What I've tried:</p>
  
  <pre><code>R=1
  R = [R*=num for num in num_list ]
         ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>I expect to get the same value (=840) when simplify the expression</p>