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 trialBrock Gunter-Smith
Courses Plus Student 331 PointsValid solution not working
Why is this valid in Xcode, but not valid as a solution on this page?
var todo = ["Learn Swift","Build App","Deploy App"]
println("\(todo.count)")
4 Answers
Ben Griffith
5,808 PointsTry println without using string interpolation on todo.count (You don't need to use quotes, or the parenthesis and backslash)
println(todo.count)
Randall Rego
8,194 PointsAre those on the same line in your solution? Try moving the println function to a second line or add a ; between them.
Brock Gunter-Smith
Courses Plus Student 331 PointsThey are on separate lines :-(
I'm thinking the page has a particular answer that it wants me to use that I'm just not using. Is there a different string interpolation technique or style I should be using to get it to accept the answer?
Brock Gunter-Smith
Courses Plus Student 331 PointsDone. Worked! :-) Yeesh.