MCQ Answer

To add a new element to a list we use which command?

To add a new element to a list we use which command?

एक लिस्ट में एक न्यू एलिमेंट ऐड करने के लिए हम किस कमांड का यूज़ करते हैं?
Topic : Sequence data types in python

A. list1.add(5)

B. list1.append(5)

C. list1.addLast(5)

D. list1.addEnd(5)




Correct Answer is :

B. list1.append(5)



Explanation
We use the function append to add an element to the list.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz