I am on pset 7 and my quote function is throwing me a syntax error on else. Anyone can detect it? I know that an error where it is obvious mean that the lines before might be errorneous, but I can't find it:
def quote(): if request.method == "POST": stock = request.form.get("stock") if lookup(stock) is not None: return apology("Stock", "not found") else: stock_info = lookup(stock) return render_template("quoted.html", stock = stock_info) """Get stock quote.""" else: return render_template("quote.html")
The last else is throwing a syntax error. Thank you for anyone can help me.