0
Help me guys.. I'm just messed up with this question.. My wrong answer is 16 😒..what's yours..
How many letters 'a' will be printed after this code is executed? i = 0 a = 'a' while i < 8: a *= 2 i += 1 print (a)
5 odpowiedzi
+ 2
SELVANITHISH SELVANITHISH try to run it in code playground ..
You will get your answer
edit:
check this
https://code.sololearn.com/clw81Jh6mqNM/?ref=app
it print 256 times
+ 2
SELVANITHISH SELVANITHISH it is going to be 2 raised to power 8
because its doubling itself at every run
+ 1
a will be printed 256 times..
+ 1
Oops!!! i didn't realize the counting increased..Thanks friends.. It's Helped 😊
0
AKSHAY i got it but.. How's that actually work... Why not 16?