input: def delete_item_from_list():
      """This function creates a REST API in Python using Flask that allows for deleting an item from a list.
      The list 'items' initially contains ["Apple", "Banana", "Orange"]. The API supports a GET request to view the list
      of items at '/items' and a DELETE request at '/items/<item>' to remove a specified item. If the item exists in the
      list, it returns a success message; otherwise, it returns a 'not found' message.
      >>> delete_item_from_list()
      * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
      >>> The DELETE request to '/items/Banana' results in "Item successfully deleted."
      >>> The DELETE request to '/items/Grape' results in "Item not found."
      """
output:     
      from flask import Flask, jsonify, request
  
      app = Flask(__name__)
  
      items = ["Apple", "Banana", "Orange"]
  
      @app.route('/items', methods=['GET'])
      def get_items():
          return jsonify(items)
  
      @app.route('/items/<item>', methods=['DELETE'])
      def delete_item(item):
          if item in items:
              items.remove(item)
              return jsonify({"message": "Item successfully deleted."})
          else:
              return jsonify({"message": "Item not found."}), 404
  
      if __name__ == '__main__':
          app.run(debug=True)
  