Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![michael ernst](https://secure.gravatar.com/avatar/47f1e6bfac72e817f5823a3616ad328a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
michael ernst
2,219 PointsJust trying to figure out where I went wrong.....I've rewatched the video several times. Where am I going wrong?
I feel as if I have written the same code as in the video. I definitely miss the hint button in this course. But I must be missing something somewhere because it's not coming up a pass. Anybody able to steer me in the right direction on what I must not be seeing?
from flask import Flask
from flask import request
app = Flask(__name__)
@app.route('/')
def index(name="Treehouse"):
return "Hello from {}".format(name)
1 Answer
![Rick Gleitz](https://uploads.teamtreehouse.com/production/profile-photos/10566072/micro_highres_446837619.jpg)
Rick Gleitz
47,836 PointsThe title of the challenge is Request Args, and it had you import requests (which you did). So you need to use request and args in a line before the return statement:
name = request.args.get("name", name)
You also need to return the string the challenge wants: "Hello {}" versus "Hello from {}" (that would work in real life, but it won't pass the challenge). Hope this helps!
michael ernst
2,219 Pointsmichael ernst
2,219 Pointsthanks! ill try it out and see how it goes