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 trial

iOS Swift Basics (retired) Types Printing Results

Ben Brumfield
Ben Brumfield
449 Points

Given the constant named language, write a println statement which will print the following string: "Learning Swift".

Help?

println.swift
let language = "Swift"
println("Learning \(Language)")

2 Answers

Michael Hulet
Michael Hulet
47,912 Points

You're really close, but just use a lowercase "l" in "language" in the 2nd line

Ben Brumfield
Ben Brumfield
449 Points

Even when I use lowercase it still does not want to accept it.

Michael Hulet
Michael Hulet
47,912 Points

Could you paste the line you're writing here, so I can see exactly what you're trying?

Silviu B.
Silviu B.
3,111 Points

You might be using a newer version of Swift. And println is now just print. See below.

let language = "Swift"
print("Learning \(language)")
Michael Hulet
Michael Hulet
47,912 Points

I 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