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)
![john ledesma](https://secure.gravatar.com/avatar/0eaa1a420529269e6f424f85ff9743f3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
john ledesma
6,944 PointsCan someone please help me with this problem, I am not sure what is wrong. This compiles in playground.
func addTwo(a: Int) -> Int { return a + 2 } let addition = addTwo addition(2 + 9 ) let result = addition
// Enter your code below
![Anthony Boutinov](https://secure.gravatar.com/avatar/f166772fc40cb458d472554ad9c635c6?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Anthony Boutinov
13,844 PointsFor the future, you can edit your posts/comments on this forum, so even if you forget to format code you can always do it afterwards. =)
john ledesma
6,944 Pointsjohn ledesma
6,944 PointsFound the answer :)
let addition = addTwo let result = addition(5)
https://teamtreehouse.com/community/im-having-difficulty-with-the-challenge-write-a-function-named-addtwo-task-1-of-2
also Sorry I did not Format my code correctly.