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

iOS Swift Basics (retired) Collections What is an Array?

Need help using arrays

I can't figure out challenge 2 on "arrays" It wants me to use println to print the number of items. I used todo.count to get the number but how do I print it?

3 Answers

kirkbyo
kirkbyo
15,791 Points

Hey Rhett,

Did you use string interpolation to complete this? Normally that would work, but for some reason the task only accepts as a correct answer

println(todo.count)

I hope this helped,

Ozzie

Jason Wayne
Jason Wayne
11,688 Points

println(\ (todo.count))

Thanks!