Starting with a variable x=1, Print the sequence
by doubling x and checking that x is less than 150.
x = 1
while x < 150:
print '%s, ' % x,
x *= 2
Submit a new solution for
There are 19 other solutions in additional