Unlike other languages like Java and C++ where curly braces are used for representing a block of code, Python uses indentation to represent a block. The above program is not properly indented. So correct the program.
import sys
def Factorial(n): # Return factorial
result = 1
for i in range (1,n):
result = result * I
print "factorial is ",result
return result