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 Strings

Strange error message

After doing the challenge, using interpolation, I got the following error message (except that the X was red and inside a red circle, and Bummer! was also in red):

X Bummer! You printed "Learning Swift", but you were supposed to print "Learning Swift".

Not sure what to do with this???

3 Answers

Christopher, thanks for your interest. What I did to get it to accept my code (as entered) was to clear the browser cache. Then I refreshed the page, and the error message was replaced by the congrats message.

Christopher Augg
Christopher Augg
21,223 Points

Ah. Nice! Good to know for future courses for sure. Thanks for letting me know.

Christopher Augg
Christopher Augg
21,223 Points

James,

You probably have an extra space in your string.

       println("Learning  \(language)") //delete a space between Learning and \

Hope this helps.

Regards,

Chris

Nope, I checked for an extra space

Christopher Augg
Christopher Augg
21,223 Points

Hmm. I made it give me that error with the space. It passes the test for me if I take it out. That error is also given if the space is just before the ending ) . Basically cannot have any spaces other than the one. Can you provide the code you are using? That would help me narrow it down.

Thanks