input: def create_flask_app() -> Flask:
      """ Create a Python web application using Flask that takes user input via a form and renders an HTML page displaying the input.
      The app should have two routes: a home route that accepts both GET and POST methods, and a result route that displays the user input.
      The home route should render an index.html template when accessed via GET, and should render a result.html template with the user input when accessed via POST.
      Example:
      When the user submits 'Hello World' as input, the result route should display 'Your Input: Hello World'.
      """
output:     
      from flask import Flask, request, render_template
  
      app = Flask(__name__)
  
      @app.route('/', methods=['GET', 'POST'])
      def home():
          if request.method == 'POST':
              user_input = request.form['user_input']
              return render_template('result.html', user_input=user_input)
          return render_template('index.html')
  
      @app.route('/result')
      def result():
          return render_template('result.html')
  
      return app
  