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!

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?

Harrison Brown
Harrison Brown
1,757 Points

var todo = ["Learn Swift", "Build App", "Deploy App"] println("\(todo.count)") what is wrong with this

Please help thanks

var todo = ["Learn Swift", "Build App", "Deploy App"]

1 Answer

Chris Shaw
Chris Shaw
26,663 Points

Hi Harrison,

For this task you don't need to use interpolation as the println function will automatically convert the value we give it into a human friendly output in the console, you simply just need to pass it the count.


Happy coding!