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 trialDmitry Karamin
10,099 Pointsi don't get what i have to do
what does it mean "Create a Challenge from the arguments"?????
from models import Challenge
def create_challenge(name, language, steps=1):
Challenge(name, language, steps)
challenge = create_challenge("Dima", "Rus")
2 Answers
Jennifer Nordell
Treehouse TeacherThe guys and gals over at Treehouse are going to send your function information. Likely as not the name will be "Mike the Frog" given their other videos, but we'll never know for sure! So your function needs to work for whatever they send it. So this is what they're asking for. Take a look:
def create_challenge(name, language, steps=1):
Challenge.create(
name=name,
language=language,
steps=steps)
Dmitry Karamin
10,099 PointsThan u very much. i've almost done it ))