It's Python - you have to be careful about the white-space indentations (below, each indent is a tab, but you can use spaces - but don't mix them!):
def fact_iterative(n):
fact=1
for i in range(n):
fact=fact *(i+1)
return fact
n=int(input("enter:"))
print("ITERATIVE FACTORIAL:",fact_iterative(n))
once you get that right it works correctly.
Also if you're copy-pasting or typing this into a python interpreter, each chunk needs to be entered separately.