Question 1

What is the output of the following few lines of code?

A=[1,2,3]

for a in A:

  print(2*a)


Question 2

What is the output of the following few lines of code?

x=5
while(x!=2):
  print(x)
  x=x-1


Question 3

What is the output of the following few lines of code?

for i,x in enumerate(['A','B','C']):
    print(i 1,x)


Question 4

What is the output of the following?

for i in range(1,5):
    if (i==2):
        print(i)