Question: While trying to using Flask in Python for the first time, I get a weird syntax error. Does anyone know why? Filename: hello-world.py from

While trying to using Flask in Python for the first time, I get a weird syntax error. Does anyone know why?

"""Filename: hello-world.py """ from flask import Flask app = Flask(__name__) @app.route(' / users/') def hello_world(): return ("Hello {}.format(username))" if __name__ == '__main__' (I have tried this line with and without the :) app.run() 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!