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
Matthew Sharikov
5,767 PointsSwift 2.0 Basics Question
Hello there!
I'm stuck on the following question. Every book in our store has a rating so that customers can sort through selections. In this task, declare a variable named rating and assign the value 7.5?
My answer that doesn't work: var rating = 7.5
2 Answers
David Papandrew
8,386 PointsThat's the correct answer. What kind of error are you receiving?
If you happened to remove the title constant from the previous step, the exercise will complain and return an error, so make sure you don't remove that line of code when you submit your answer.
Matthew Sharikov
5,767 PointsHello David,
Thank you for the quick response! The problem was the title constant.