input: from flask import Flask, render_template, request
  
  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)
  
  """
  Create a web application using Flask that takes user input and generates an HTML page displaying the input. The application should have a route ('/') that accepts both GET and POST methods. If a POST request is made, it should retrieve the input from the form and render it on a 'result.html' page.
  
  Example:
  1. When the user accesses the home route ('/') using GET, the application should render 'index.html'.
  2. When the user submits a POST request with 'input_text' as "Hello World", the application should render 'result.html' with the content:
     <html>
      <body>
       <h1>Your Input:</h1>
       <p>Hello World</p>
      </body>
     </html>
  """
output:     return render_template('index.html')