Write a program that prints out all of the powers of 2 less than one million. Hint: There are 20 powers of 2 less than one million.
Write a program that prints out all of the powers of 2 less than one million
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
power = 1
while power < 1_000_000:
print(power)
power *= 2