October 16, 2021

Software Mile.com

Latest Software News and Hacks

Q1) To add a new element to a list we use which command? a) list1.add(5)b) list1.addEnd(5)c) list1.append(5)d) list1.addLast(5) View Answer Answer:- c) list1.append(5) We use the function append() to add an element to the list. Q2) To remove the string “Know Program” from list1, we use which command? a) list1.remove(Know Program)b) list1.remove(“Know Program”)c) list1.removeAll(“Know Program”)d) …

List MCQ in Python-2 Read More »

Go to Source of this post
Author Of this post: Guddu Singh
Title Of post: List MCQ in Python-2
Author Link: {authorlink}