Sum and Product of Terms by Python

  1. Let tn = 2n - 1, where n >= 1.
    Find the answer of the following by a 'for' loop of Python:



  2. Let tn = 2n - 1, where n >= 1.
    Find the answer of the following by a 'while' of Python:



  3. Let x1 = 2, and xn = 3 + xn-1, where n >= 2.
    Find the answer of the following by loops of Python: