input: Write a python function to delete an element from a list based on user input.
  assert delete_element([1, 2, 3, 4, 5])==[1, 2, 4, 5]
  assert delete_element([10, 20, 30, 40])==[10, 30, 40]
  assert delete_element([7, 8, 9])==[8, 9]
output: def delete_element(lst):
      element = int(input("Enter the element to delete: "))
      if element in lst:
          lst.remove(element)
      return lst