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 trialDaniel Springer
Courses Plus Student 5,090 PointsI also struggle with the part of the challenge
Hi I also struggle with the second part of the challenge. I have read the challenge over and over again and watched the video 3 times. I have read through all the questions / answers from other students. I’m still confused with the second part of the challenge and of what is actually required to do. For the first part i have this answer which makes sense to me and seems to be correct.
// Enter your code below
var results: [Int] = []
for multiplier in 1...10{
results.append(multiplier * 6)
}
For the second part I’m stuck and not sure what is required. I just clicked checked work using the answer for the first question and the compiler said it was correct ????
Could someone from Treehouse please address this question so as have a answer that we know is the correct solution to this challenge.
Thanks in advance for the help.
2 Answers
Konrad Król
4,454 PointsHi Daniel, your answer is completely correct. It looks like you've done two steps at once. In first step you were asked for just creating an empty for in loop and then in second step to write code in it ;)
Daniel Springer
Courses Plus Student 5,090 PointsHi Konrad,
Thanks for replying.
That explains why the answer was working for the first and second part. I don't think the challenge was worded very clearly therefore the confusion. Putting it the way you did would have been clearer to me. :) Thanks again. D.