91.
Which of the following is the correct expansion of list_1 = [expr(i) for i in list_0 if func(i)]?

list_1 = []
for i in list_0:
    if func(i):
        list_1.append(i)

for i in list_0:
    if func(i):
        list_1.append(expr(i))

list_1 = []
for i in list_0:
    if func(i):
        list_1.append(expr(i))

92.
What will be the output of the following Python code?
r = [11, 12, 13, 14, 15, 16, 17, 18, 19]
A = [[0, 10, 20],
               [30, 40, 50],
               [60, 70, 80]]
for row in A:
	for col in row:
		r.append(col+10)
r

93.
What will be the output of the following Python code?
places = ['Bangalore', 'Mumbai', 'Delhi']

places1 = places places2 = places[:]
places1[1]="Pune" places2[2]="Hyderabad" print(places)

94.
What will be the output of the following Python code?
values = [[3, 4, 5, 1 ], [33, 6, 1, 2]]
 
for row in values:
    row.sort()
    for element in row:
        print(element, end = " ")
    print()

97.
What will be the output of the following Python code?
l1=[1,2,3]
l2=[4,5,6]
l3=[7,8,9]
for x, y, z in zip(l1, l2, l3):
	print(x, y, z)

98.
What will be the output of the following Python code?
def m(list):
    v = list[0]
    for e in list:
      if v < e: v = e
    return v
 
values = [[3, 4, 5, 1], [33, 6, 1, 2]]
 
for row in values: 
    print(m(row), end = " ")

Read More Section(Lists in Python)

Each Section contains maximum 100 MCQs question on Lists in Python. To get more questions visit other sections.