Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,881 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,881 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,881 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