which function deletes the first occurence of 3 in a list named listb?\nlistb.remove(3)\nlistb(3)\nlistb.clea…

which function deletes the first occurence of 3 in a list named listb?\nlistb.remove(3)\nlistb(3)\nlistb.clear(3)\nlistb.delete(3)
Answer
Brief Explanations:
In Python, the remove() method of a list is used to remove the first occurrence of a specified element. The other options are not valid list - methods for this purpose. listB(3) is not a valid operation on lists, listB.clear() clears the entire list (not takes an argument to remove a specific element), and there is no listB.delete() method for lists in Python.
Answer:
A. listB.remove(3)