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 trialBen Brumfield
449 PointsGiven the constant named language, write a println statement which will print the following string: "Learning Swift".
Help?
let language = "Swift"
println("Learning \(Language)")
2 Answers
Michael Hulet
47,913 PointsYou're really close, but just use a lowercase "l" in "language" in the 2nd line
Silviu B.
3,111 PointsYou might be using a newer version of Swift. And println is now just print. See below.
let language = "Swift"
print("Learning \(language)")
Michael Hulet
47,913 PointsI don't believe this would help. The older Swift courses still use Swift 1.2, which used println
(it wasn't changed to print
until Swift 2). That being said, you are right that it was changed, and OP (and everyone else) should take the newer Swift course, instead
Ben Brumfield
449 PointsBen Brumfield
449 PointsEven when I use lowercase it still does not want to accept it.
Michael Hulet
47,913 PointsMichael Hulet
47,913 PointsCould you paste the line you're writing here, so I can see exactly what you're trying?