1#Save the file as app.py
2from flask import Flask
3app=Flask(__name__)
4
5@app.route('/',methods=['GET','POST'])
6
7def Home():
8 return "Hello World"
9
10#Run on command Prompt following commands(Windows):
11# >>cd Desktop/
12# >>cd FlaskFolder
13# >>py -3 -m venv venv
14# >>venv\Scripts\activate
15# >>python app.py