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!
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
Aizah Sadiq
2,434 PointsI wasn't able to get the solution for the challenge
What does it mean by defining a single parameter can someone post their code
4 Answers

Steven Parker
224,849 PointsThis question is linked to a video instead of a challenge, but here's a generic example of a function defined to take a single parameter:
def add_six(val):
return val + 6;
In this case, "val" is the single parameter.

Aizah Sadiq
2,434 PointsDoes the question give the single parmeter?

Aizah Sadiq
2,434 PointsWhat do the squiggly brackets do

Steven Parker
224,849 PointsSorry, that was a JavaScript example, I revised it and added a comment to my answer.

Aizah Sadiq
2,434 PointsI was reffering to the thats odd challenge

Steven Parker
224,849 PointsOK, so the structure will be similar to my example but the expression that the function returns will be different.
Steven Parker
224,849 PointsSteven Parker
224,849 PointsThose {} characters are normally called "braces" or "curly braces", and they mark the beginning and end of a function's code body in JavaScript. But I see now that your question relates to Python so I changed the example.