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 trialSeharsh Baxi
795 PointsWhy isn't this correct
Help
let language = "Swift"
println = (Learning (/language))
2 Answers
Jhoan Arango
14,575 PointsHi :
Remember that the sign = is the "assign" a value. Here you should not use the = sign to the print. Instead do this println()
Hope that helps
Dustin Morgan
7,551 Pointslet language = "Swift"
println("Learning \(language)")
You are forgetting your quotations and you have the string interpolation syntax off as well as the println syntax off. It is always within the quotation marks and uses the syntax above.
Jhoan your answer is partially correct in part they are trying to assign the value so they can use string interpolation but they also have the syntax wrong for println which is what you mention.
Jhoan Arango
14,575 PointsYou are right, I guess since I saw the first problem I completely ignore to look at the rest. After reading what you wrote, then I did see the rest of the code.
Thanks