

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”) |
Answer» The correct answer is (a) list1.remove(“hello”) The explanation is: Execute in the shell to verify. |
|