input: Write a function to delete a certain element from a linked list. The function should take the element to be deleted as an argument and remove it from the list if it exists.
  assert deleteNode([1, 2, 3], 2)==[1, 3]
  assert deleteNode([4, 5, 6], 1)==[4, 5, 6]
  assert deleteNode([], 7)==[]
  assert deleteNode([8], 8)==[]
  assert deleteNode([9, 10, 11, 10], 10)==[9, 11, 10]
output: def deleteNode(lst, element):
      while element in lst:
          lst.remove(element)
      return lst