Python Flask Basics Welcome to Flask View Args Through URL

Albert Egberg
Albert Egberg
7,786 Points

Did you change the view arg?

What am I doing wrong? I can't spot it myself

flask_app.py
from flask import Flask

app = Flask(__name__)


@app.route('/')
@app.route('/<name>')
def hello(name="Treehouse"):
     return 'Hello Student {}'.format(name)

1 Answer

The instructions are to say "Hello {name}". You have included the word "Student".