input: Write a function to create a REST API in Python that can be used to delete an item from a list. The API should include a route to get all items and a route to delete a specific item. Return a JSON response indicating whether the item was successfully deleted or not found.
  from flask import Flask, request
  import json
  
  app = Flask(__name__)
  items = ["Apple", "Banana", "Orange"]
  
  @app.route('/items', methods=["GET"])
  def get_items():
   return json.dumps(items)
  
  @app.route('/items/<item>', methods=["DELETE"])
  def delete_item(item):
   if item in items:
    items.remove(item)
    message = "Item successfully deleted."
   else:
    message = "Item not found."
   return json.dumps({"message": message})
  assert delete_item("Apple") == {"message": "Item successfully deleted."}
  assert delete_item("Mango") == {"message": "Item not found."}
  assert get_items() == ["Banana", "Orange"]
output: 
  if item in items:
   items.remove(item)
   message = "Item successfully deleted."
  else:
   message = "Item not found."
  return json.dumps({"message": message})
  