predict the output of the following program: x=[1,2,3] counter = 0 while counter < len(x): print(x[counter] * ‘ % ’) for y in x : print(y * ‘ * ‘) counter +=1
Answers
Answered by
1
Answer:
This means get the current value of x, add one, and then update x with the new ... def countdown(n): while n > 0: print n n = n-1 print " Blastoff!" ... 3 is printed and 3 % 2 == 0 is evaluated.
Similar questions