Computer Science

When the following code runs, how many times is the line "x = x * 2" executed?

x = 1
while ( x < 20 ):
    x = x * 2
  1. 2
  2. 5
  3. 19
  4. 4
  5. 32

Python Control Flow

27 Likes

Answer

5

Answered By

5 Likes


Related Questions