max baseman wrote:
> here is the program sorry copying it from interactive:
> 
>  >>> number=1
>  >>> count=1000
>  >>> count=0
>  >>> while count < 1000:
> ...     if (number*2)%2 == 0:

This will always be true, you multiply by two then check if the result 
is divisible by two.

Kent

> ...             number=number*2
> ...     else:
> ...             number=(number-1)/3.0
> ...     count=count+1
> ...     print number

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to