5/15 how can i make this to life?


#1

def factorial(x):
.....xi = 0
.....xo=1
......if x == xi:
return 0
elif x == xo:
return xo

else:
.... number = 0
.... for z in number:
........... if z != x:
........... result = z * x
............ z += 1
for number in range(0,x):
return result

how can i make this to life


#2

I do not understand what it is you are asking!

Note that there's a button in the post editor for preserving format of pre-formatted text