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

Jesse Langford
Jesse Langford
1,694 Points

Why is this wrong

In my swift playground this line prints what the question is asking for, but your website says that I have the wrong answer. Can you help me understand why Im wrong?

numbers.swift
let title: String = "A Dance With Dragons"

3 Answers

Chase Marchione
Chase Marchione
155,055 Points

Hi Jesse,

You've got the right idea. Just a matter of casing (the 'w' in 'with'):

let title: String = "A Dance with Dragons"
Jesse Langford
Jesse Langford
1,694 Points

alright thanks, for some reason it is still telling me that Im wrong.

this is the exact question: "We need store some information about a book in several variables. Let's start with the title of book. Create a constant named title and assign it a string: "A Dance with Dragons"."

Keli'i Martin
Keli'i Martin
8,227 Points

What is the exact error you are getting? If I copy and paste CJ's code into the challenge, task 1 passes. Sometimes, the challenge's workspaces get into a weird state and require a hard refresh. Have you tried that yet?

Jesse Langford
Jesse Langford
1,694 Points

No, ill give it a try. I get "Your 'title' constant has the wrong value in it." when I try to submit my answer