Please tell what's wrong in input way in ALGFACT Problem

Wrong answer is shown on submission. My code is in Python:

import math
N=input("Enter the value of N: ")
if N<10:
   i=0
   T=[0,1,2,3,4,5,6,7,8,9]
   result=T
   print "Enter terms"
   while (i<N):
       T[i]=input()
       if T[i]<=200:
           i=i+1
       else:
           print "Value of T must be less than or equal to 200"
    i=0
    while (i<N):
       result[i]=math.factorial(T[i])
       print result[i]
       i=i+1
else:
    print "Value of N must be less than 10"

Don’t print "Enter the value of N: " or “Value of T must be less than or equal to 200”. You can safely assume that the judge knows what it’s giving as input to your solution. Please follow the I/O constraints specified in the problem.

//