title: Problem with Python code for finding factorials
body: <p>Have the function <code>FirstFactorial(num)</code> take the num parameter being passed and return the factorial of it. For example: if num = 4, then your program should return (4 * 3 * 2 * 1) = 24. For the test cases, the range will be between 1 and 18 and the input will always be an integer. </p>
  
  <p>and this is my code</p>
  
  <pre><code>def FirstFactorial(num):
      x = [1]
      if num == 1:
          return 1
      else:
          for i in range(1,num+1):
              x = x*(i)
      return x
  
  print (FirstFactorial(4))
  </code></pre>
  
  <p>The expected output is <code>24</code>. I get the following output from the code given above.</p>
  
  <pre><code>[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
  </code></pre>