MCQs > IT & Programming > Python > 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=' ')

Python MCQs

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=" ")


Answer

Correct Answer:

4 2 4 9

5 3 10


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it