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 trialAlex Murawski
1,228 PointsWhat is the answer to task 3 of 3. I have tried everything and cannot figure it out.
I have solved the other tasks. Please help... Thank You
2 Answers
Cole Sobotka
4,232 PointsTo access the values of a tuple, just use the . operator.
var result1 = someTuple.valueOne
var result2 = someTuple.valueTwo
...etc
Since in this case the return values are just Strings, you can feed them directly into the println() function
Avith Gutierrez
2,797 PointsHey there you just need to print the value asked so after your var in the next line you need to put the println stament using the information from your previous variable.
Ex
var result = funcname("name")
remember the result function has the 2 parameters so you only need to access one of the two and this is similar to accesing a table so just remember that
println( )
sometimes the exercises are not as complex as we think, we want to make them comples :D try
Stone Preston
42,016 PointsStone Preston
42,016 Pointscan you post your code you have tried so far