Here is my code!

- Code: Select all
`def juice(x):`

d=2.0

y=1.0

x = float(x)

k = (-1.0)*x**2/d

np = input("Nivel of precision: ")

np = float(np)

while d < (np):

if d % 2 == 0:

d = d*(d-1)

y = k*y + y # I'm just feeling that my error is here!; I want to take the last sum to multiply it by the constant k...

d = d + 1

return y

Could you give me some advice about this code? Please, don't post your code here, if you do this the fun is over..., I'm just seaching the way of think to solve this code.