def IterateLogistic(x,r,n):
    for i in xrange(n):
        x = r*(1-x)
        if i = n:
            print x

I want this function to take in x and r which can be any two real numbers
and after a certain number of iterations (n), the function should print the
current state which is x. I tried this function and it doesn't do anything.
May you please tell me what i did wrong?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to