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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Aizah Sadiq](https://secure.gravatar.com/avatar/5423495ce21caa1b2900d7b01dc524c0?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
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](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,274 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](https://secure.gravatar.com/avatar/5423495ce21caa1b2900d7b01dc524c0?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Aizah Sadiq
2,434 PointsDoes the question give the single parmeter?
![Aizah Sadiq](https://secure.gravatar.com/avatar/5423495ce21caa1b2900d7b01dc524c0?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Aizah Sadiq
2,434 PointsWhat do the squiggly brackets do
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,274 PointsSorry, that was a JavaScript example, I revised it and added a comment to my answer.
![Aizah Sadiq](https://secure.gravatar.com/avatar/5423495ce21caa1b2900d7b01dc524c0?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Aizah Sadiq
2,434 PointsI was reffering to the thats odd challenge
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,274 PointsOK, so the structure will be similar to my example but the expression that the function returns will be different.
Steven Parker
230,274 PointsSteven Parker
230,274 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.