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 trialTopher Lum
2,565 PointsHow do I solve the first challenge?
I can't figure it out.
def add(5, 6):
return = 5 + 6
2 Answers
Andrew Rady
20,880 PointsHey Topher,
When adding variables you don't want to give the numbers in the function. You want to make variables like a math equations
def add(a, b):
return a + b
Then you will want to call def add with the number you want to add together (A and B)
def add(a, b):
return a + b
add(1,2)
Topher Lum
2,565 PointsThanks Andrew, now I can't figure the next challenge, but I'll keep working at it.