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 trialJan Francírek
1,766 PointsHelp with this ... Next create a constant called price and assign it the value 9.99.
I thought its
let price: Double = "9.99"
But its still invalid. Can someone give me an advice please?
Thank you very much
3 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Jan,
You've assigned it the string "9.99"
Try let price = 9.99
Edwin Rozario
2,922 PointsThe exercise is not telling to append the answers to the last one. That cased me some failures. I was erasing the last one and adding the results.
Jan Francírek
1,766 PointsIt works yes, I´ve already soluted 5 minutes ago but altough thank you :)
Jason Anello
Courses Plus Student 94,610 PointsYou're welcome
Mateusz Frasunkiewicz
871 PointsMateusz Frasunkiewicz
871 PointsI wrote the same but it doesn't work.
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi Mateusz,
Can you post the code you've tried?