

InterviewSolution
Saved Bookmarks
1. |
To remove string “hello” from list1, we use which command?(a) list1.remove(“hello”)(b) list1.remove(hello)(c) list1.removeAll(“hello”)(d) list1.removeOne(“hello”)This question was addressed to me during an online exam.My question comes from Lists in chapter Lists & List Comprehension of Python |
Answer» The correct answer is (a) list1.remove(“HELLO”) |
|