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
Cant figure out what I'm doing wrong here.
Need help figuring out what I am doing wrong here.
// Enter your code below
let firstValue = 3
let secondValue = 7
let product = firstValue * secondValue
let output = "The product of \(firstValue) times \(secondValue) is \(product)"
Jennifer NordellTreehouse Teacher
Hi there! You're either going to love or hate this answer, but you're doing great! Challenges can be extremely strict especially when looking at strings. Generally speaking, they have to match to the letter. This includes spelling, punctuation, capitalization, and even spacing. The reason your code isn't passing is because you have an extra space. Seriously. That's the only thing "incorrect".
You have one too many spaces between the interpolation of
secondValue and the word "is". Remove one space there, and your code passes with flying colors!
Kapil Soni2,612 Points
such strictness is actually wasting a lot of time for users who want to resolve the problem themselves rather looking for a solution.