i am getting perfect output in my system i dont know what is the problem please someone help me
import math n=input('') for i in range(n): try: x=input('') f=math.factorial(x) print f except (EOFError): break except (Exception): break
Factorial function isn't available in Python 2.5.