vsearch4web.py - from flask import Flask render_template request from vsearch import search4letters app = [email protected]\/search4 methods='POST def

vsearch4web.py - from flask import Flask render_template...

This preview shows page 1 out of 1 page.

from flask import Flask, render_template, request from vsearch import search4letters app = Flask(__name__) @app.route('/search4', methods=['POST']) def do_search() -> 'html': phrase = request.form['phrase'] letters = request.form['letters'] title = 'Here are your results:' results = str(search4letters(phrase, letters)) return render_template('results.html',
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '19
  • susan lee

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture