Python - While Loop
What will be printed after running this code?
num = 1
while True:
num *= 2
if num > 10:
break
print(num)What will be printed after running this code?
num = 1
while True:
num *= 2
if num > 10:
break
print(num)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions