What is the output of the following few lines of code?
A=[1,2,3] for a in A: print(2*a)
What is the output of the following few lines of code?
x=5 while(x!=2): print(x) x=x-1
What is the output of the following few lines of code?
for i,x in enumerate(['A','B','C']):
print(i 1,x)
What is the output of the following?
for i in range(1,5):
if (i==2):
print(i)