Python Flask Basics Welcome to Flask Request Variables

NameError

Getting an error after the request args as such: http://port-8000-p5b5uccffj.treehouse-app.com/ builtins.NameError NameError: name 'request' is not defined

from flask import Flask

app = Flask(__name__)

@app.route('/')
def index(name="Ednalyn"):
  name = request.args.get('name', name)
  return "Hello {}!".format(name)

app.run(debug=True, port=8000, host='0.0.0.0')

Nevermind! I forgot to import request

from flask import request