Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Team

How do i resolve this issue, i have space indedation with this colon, if__name__ == '__main__':// issue is here?

What I have tried:

Python
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello():
    return 'eNtsa Test'

if__name__ == '__main__':// problem is invalid syntax error
       app.run(host='0.0.0.0', port=80, debug=TRUE)
Posted
Updated 11-Aug-20 4:26am

1 solution

Spacing is important! Change:
Python
if__name__ == '__main__':
To
Python
if __name__ == '__main__':
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900