# List in Python Quiz 9

Share with others

Welcome to your List in Python Quiz 9

Q81. Write the output of the following :

#### for r in L:Â  Â  r.reverse()Â  Â  for e in r:Â  Â  Â  Â  print(e, end = " ")

Q82. Write the output of the following:

#### L = [[5, 7, 9, 1 ], [12, 23, 4, 9]]for r in L:Â  Â  r.sort()Â  Â  for e in r:Â  Â  Â  Â  print(e, end = " ")

Q83. How many elements will be there in list 'L'

L = [[p, q] for p in (0, 4) for q in (0, 4)]

Q84. Write the output of the following:

L = [[p, q] for p in (0, 4) for q in (0, 4)]print(L[0])

Q85. Write the output of the following:

L = [23, 45, 65, 32, 3]L.insert(L[4], 'Monitor')print(L)

Q86. Which statement will give the same output?

list1 = [1, 2, 3, 4]list2 = [5, 6, 7, 8]

Q87. Write the output of the following:

L = [11, 21, 31, 41]L.append([51,62,73,84])print(len(L))

Q88. Write the output of the following :

L = [11, 21, 31, 41]L.extend([51,62,73,84])print(len(L))

Q89. Write the output of the following

L1 = ['C++', 'C-Sharp', 'Visual Basic']L2 = [name.upper() for name in L1] L3 = [name for name in L1] if(L2[2][0] == L3[2][0]): print("YES")else: print("N0")

Q90. Write the output of the following :

L = [11, 22, 33, 44, 55, 66]for i in range(1, 6): L[i - 1] = L[i]*2for i in range(0, 4): print(L[i], end = " ")

Share with others
error: Content is protected !!