Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Swift Collections and Control Flow Control Flow With Loops For In Loops

Bea Santos
Bea Santos
iOS Development with Swift Techdegree Student 427 Points

Could someone please just reword this? I think I have a grasp on these concepts but the wording is confusing for me.


// Enter your code below
var results: [Int] = [6]
for multiplier in 1...10 {
  (1 * 6)

results.append ()

1 Answer

Michael Hulet
Michael Hulet
47,842 Points

It looks like you passed the first part (great job!), so I'm just gonna reword the second. It's basically asking you to multiply multiplier by 6 and append the product to the results array. When your done, results will contain the numbers 6 through 60, counting by 6. You have all the components you need to pass this challenge in your code already, but you just need to put them in the right place 😉 Also, you'll need to start with results as an empty array again (you've put 6 in it to start). You're pretty close, and I'm sure you'll get it!