diff --git a/HWs/DmitriyK/HM1/main.py b/HWs/DmitriyK/HM1/main.py new file mode 100644 index 0000000..c08083a --- /dev/null +++ b/HWs/DmitriyK/HM1/main.py @@ -0,0 +1,18 @@ +from flask import Flask + +app = Flask(__name__) + + +@app.route("/") +def home(): + return "Hello world!" + + +@app.route("/user_name/") +def hello_user(name): + print(name, type(name)) + return f"{name}" + + +if __name__ == "__main__": + app.run(debug=True, host="0.0.0.0") diff --git a/HWs/DmitriyK/HM1/screenshots1.png b/HWs/DmitriyK/HM1/screenshots1.png new file mode 100644 index 0000000..05a70b0 Binary files /dev/null and b/HWs/DmitriyK/HM1/screenshots1.png differ diff --git a/HWs/DmitriyK/HM1/screenshots2.png b/HWs/DmitriyK/HM1/screenshots2.png new file mode 100644 index 0000000..400097d Binary files /dev/null and b/HWs/DmitriyK/HM1/screenshots2.png differ