Which command can we use to insert 5 to the third position in list?

To insert 5 to the third position in list1, we use which command?

To insert 5 to the third position in list1, we use which command?
A. list1.insert(3, 5)लिस्ट 1.इन्सर्ट (3, 5)
B. list1.insert(2, 5)लिस्ट1.इन्सर्ट(2, 5)
C. list1.add(3, 5)लिस्ट1. ऐड(3, 5)
D. list1.append(3, 5)लिस्ट1.append(3, 5)



Correct Answer is :A. list1.insert(3, 5)



ExplanationExecute in the shell to verify.

Video liên quan

Postingan terbaru

LIHAT SEMUA