Flask apps require passing __name__ to Flask() for correct setup.
Step 2: Verify route and function syntax
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
return 'Hello World!' correctly imports Flask, initializes app with __name__, and defines a route with a function returning a string.
Final Answer:
Correct Flask app start with __name__ -> Option C
Quick Check:
Flask(__name__) is correct app init [OK]
Quick Trick:Flask app needs Flask(__name__) to start [OK]
Common Mistakes:
MISTAKES
Using Flask() without __name__
Confusing Django import with Flask
Passing wrong argument like __file__
Master "Ecosystem and Patterns" in Flask
9 interactive learning modes - each teaches the same concept differently