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