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 Numbers


I just don't get it please give me awnser and explain


3 Answers

Basically they are asking to create constant variable and assigned them a value. Remember that use that key word "let " for constant variable

           let title : String = "A Dance with Dragons" 

hope that helps

Thanks man

glad I help you man

Hi there,

For this challenge you need to create 3 constants (in all) and assign a value them.

For the first task it asks you to create a constant named title and give it a String value of "A Dance with Dragons". To create a constant we use keyword let.

So what this task is asking you to do is create a constant (let) and name it title then give it a value of "A Dance with Dragons.

I hope that helps somewhat. You can use this formula on the other two tasks in this challenge.

Thanks man but what are the other 2 task ? Many thanks

The other two task use the same formula so:

create a constant (let), give it a name then assign it a value - I believe the other two task as you to assign Doubles instead of Strings

Thanks alot!