how to use remove in a function in python code example Example: delete from list python list.remove(element)