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)
  
  
  Write a Python function to check if the submitted form data is successfully stored in the SQLite database. The function should take a connection to the database as an argument, query the database for the latest entry, and return `True` if the entry matches with the submitted form data, otherwise `False`.
  
  
  import sqlite3
  
  def is_form_data_stored(conn: sqlite3.Connection, name: str, email: str, phone: str) -> bool:
      """ Check if the submitted form data is successfully stored in the SQLite database.
      The function queries the database for the latest entry and returns `True` if the
      entry matches with the submitted form data, otherwise `False`.
      >>> conn = sqlite3.connect('data.db')
      >>> is_form_data_stored(conn, 'John Doe', 'john@example.com', '1234567890')
      True
      """
      cur = conn.cursor()
      cur.execute("SELECT name, email, phone FROM data ORDER BY rowid DESC LIMIT 1")
      entry = cur.fetchone()
      return entry == (name, email, phone)
  
output:     cur = conn.cursor()
      cur.execute("SELECT name, email, phone FROM data ORDER BY rowid DESC LIMIT 1")
      entry = cur.fetchone()
      return entry == (name, email, phone)