41.
What will be the output of the following Python code?
a= [1, 2, 3, 4, 5]
for i in range(1, 5):
    a[i-1] = a[i]
for i in range(0, 5): 
    print(a[i],end = " ")

44.
What will be the output of the following Python code?
import copy
a=[10,23,56,[78]]
b=copy.deepcopy(a)
a[3][0]=95
a[1]=34
print(b)

46.
What will be the output of the following Python code snippet?
my_string = "hello world"
k = [(i.upper(), len(i)) for i in my_string]
print(k)

47.
What will be the output of the following Python code?
>>>m = [[x, x + 1, x + 2] for x in range(0, 3)]

Read More Section(Lists in Python)

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