input: Write a function to create a web application in Python using Flask that will take user input and generate an HTML page with the input. The function should define the necessary routes and templates for the application. To ensure the function works correctly, you will need a "result.html" template to display the user input on the webpage.
  
  
  from flask import Flask, render_template, request
  
  def create_web_app():
      app = Flask(__name__)
  
      @app.route('/', methods=['GET', 'POST'])
      def home():
          if request.method == 'POST':
              input_text = request.form.get('input_text')
              return render_template('result.html', input_text=input_text)
          return render_template('index.html')
  
      if __name__ == '__main__':
          app.run(debug=True)
      return app
  
  assert create_web_app() is not None
  
output: 
  def create_web_app():
      app = Flask(__name__)
  
      @app.route('/', methods=['GET', 'POST'])
      def home():
          if request.method == 'POST':
              input_text = request.form.get('input_text')
              return render_template('result.html', input_text=input_text)
          return render_template('index.html')
  
      if __name__ == '__main__':
          app.run(debug=True)
      return app
  