from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, World!"
1 Answer
I have removed the error by just not saving the file as "flask.py"
1 Comment
user3126530
Yes the issue is that flask.py naming convention and Import flask command are causing this issue whereas if youu run this code in jupyter notebook without saving the notebook or keeping some other name will work .