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

Python Flask Basics Welcome to Flask Multiply View

Where can I view the answers?

Where can I view the answer to this?

from flask import Flask

app = Flask(__name__)


def multiply():
  return 5 * 5

2 Answers

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

Why do you need the answer? You're very close to the solution. Decorators (those things that start with @) need to be directly before the function they decorate, so no blank lines between them. And your view, as it says in the prompt, needs to return a string. You're currently returning an integer.

Treehouse uses a point system to rank people and indicate their progress through courses and awards them for being helpful on the forums. It wouldn't work so well if they just gave the answers away (which is also why Kenneth Love also isn't going to just write the answer on the forums either, neither should anyone to any question directly). :)