diff --git a/test.py b/test.py new file mode 100644 index 0000000..7fb3b22 --- /dev/null +++ b/test.py @@ -0,0 +1,31 @@ +from flask import Flask, request + +app = Flask(__name__) + +html_template = """ +

transformations

+
+ +

+ +
+""" + +@app.route("/", methods=["POST","GET"]) +def transformations(): + if request.method == "POST": + + search = request.form["search"] + + result_list = [] + for character in search: + unicode_point = format(ord(character)) + result_list.append(character + " " + unicode_point) + + result_string = "
\n".join(result_list) + + return html_template + f"
{ result_string }
" + + if request.method == "GET": + + return html_template \ No newline at end of file