1.

How many times will Python execute the code inside the following while loop?i = 1while i < 10000 and i > 0 and 1:print “ Hello ...”i = 2 * i

Answer»

14 times will Python execute the code inside the following while loop.

Hello ...
Hello ...
Hello ...
Hello ...
Hello ...
Hello ...
Hello ...
Hello ...
Hello ...
Hello ...
Hello ...
Hello ...
Hello ...
Hello ...

Process finished.


Discussion

No Comment Found