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