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 trialHarrison Brown
1,757 Pointsvar 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"]
println("\(todo.count)")
1 Answer
Chris Shaw
26,676 PointsHi 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.
println(todo.count)
Happy coding!
Harrison Brown
1,757 PointsHarrison Brown
1,757 Pointsthank you!
Chris Shaw
26,676 PointsChris Shaw
26,676 PointsYou're welcome.