remove first occurrence of character in list python code example
Example: remove first occurrence of element from list python
Input :
list [10, 20, 30, 40, 30]
function call to remove 30 from the list:
list.remove(30)
Output:
List elements after removing 30
list [10, 20, 40, 30]