[docs] 9.3.3 bug?

Eli Bendersky eliben at gmail.com
Tue May 24 14:07:35 CEST 2011


On Tue, May 17, 2011 at 18:03, Sahat Yalkabov <sakhat at gmail.com> wrote:
> Did you mean it will print the value 18?
>

Nope. 16

>>> x = 1
>>> while x < 10: x = x * 2
...
>>> x
16

Obviously, 16 is the first power of 2 above 10.

Eli


More information about the docs mailing list