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 trialEmily Strobl
5,429 Pointscrud
im so confused on what i have to do to pass this challenge
from models import Challenge
def create_challenge()
1 Answer
Steven Parker
231,275 PointsThere are several steps yet to do here:
- you started your function definition, but it needs "name, language, and steps arguments"
- a function definition must end with a colon (":")
- the "steps" argument needs a default value (of 1)
- in the body of the function, you'll need to call the "create" method of the imported "Challenge"
- you'll need to pass it the same arguments, but convert them to keyword style