input: 
  from flask import Flask, render_template, request, redirect
  import sqlite3
  
  app = Flask(__name__)
  
  @app.route('/')
  def home():
      return render_template('index.html')
  
  @app.route('/submit', methods=['POST'])
  def submit():
      name = request.form.get('name')
      email = request.form.get('email')
      phone = request.form.get('phone')
      
      conn = sqlite3.connect('data.db')
      cur = conn.cursor()
      
      cur.execute("INSERT INTO data (name, email, phone) VALUES (?, ?, ?)", (name, email, phone))
      conn.commit()
      
      return redirect('/')
  
  if __name__ == '__main__':
      app.run(debug=True)
  
  """Complete the task described in the instruction, which is to create a Flask application that submits form data (name, email, phone) and stores it in a SQLite database. The provided code does the following:
  1. Sets up a Flask application.
  2. Defines a route for the home page that renders an index.html file.
  3. Defines a route for handling form submissions using POST.
  4. Connects to a SQLite database named 'data.db' and inserts the form data into a 'data' table.
  5. Saves the changes and redirects back to the home page.
  
  The expected output is as follows:
  - When the user accesses the home page, they should see a form.
  - Upon submitting the form, the data is stored in the database, and the user is redirected to the home page.
  
  Example:
  - Accessing '/' should render the index.html file where a form is displayed.
  - Submitting the form with Name='John', Email='john@example.com', Phone='1234567890' should store the data and redirect back to '/'.
  
  Expected Output for Example Submission:
  - The 'data' table in the 'data.db' database should contain a new row with:
      - name = 'John'
      - email = 'john@example.com'
      - phone = '1234567890'
  - The user is redirected back to the home page.
  """
output:     
      conn.close()
  