input: Write a function to create a Flask web application that takes user input from a form on the home page and generates an HTML page displaying the input. The function should return the Flask app object.
  assert home()["result.html"] == "<html>\n <body>\n  <h1>Your Input: </h1>\n  <p>{{input_text}}</p>\n </body>\n</html>"
  assert home()["index.html"] == "<html>\n <body>\n  <h1>Home Page</h1>\n  <form method='POST'>\n   <input type='text' name='input_text'>\n   <button type='submit'>Submit</button>\n  </form>\n </body>\n</html>"
  assert home()["user_input"] == "Sample Input"
  assert home()["result"] == "<html>\n <body>\n  <h1>Your Input: </h1>\n  <p>Sample Input</p>\n </body>\n</html>"
output: 
  from flask import Flask, render_template, request
  
  def home():
      app = Flask(__name__)
  
      @app.route('/', methods=['GET', 'POST'])
      def index():
          if request.method == 'POST':
              user_input = request.form['input_text']
              return render_template('result.html', input_text=user_input)
          return render_template('index.html')
  
      return app
  