What will be the correct output of the following Python code?
lst = [3, 1, 2, 5, 4, 3, 8]
del lst[2 : 5]
print (end="")
for i in range(0, len(lst)):
print(lst[i]+1, end=" ")
print("\r")
lst.pop(2)
print (end="")
for i in range(0, len(lst)):
print(lst[i]+2, end=" ")
Correct Answer:
4 2 4 9
5 3 10
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions