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 Swift Types Recap: Swift Types

Ahmad Ibrahim
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Ahmad Ibrahim
Full Stack JavaScript Techdegree Graduate 26,074 Points

Cant figure out what I'm doing wrong here.

Need help figuring out what I am doing wrong here.

types.swift
// Enter your code below


let firstValue = 3

let secondValue = 7

let product = firstValue * secondValue

let output = "The product of \(firstValue) times \(secondValue)  is \(product)"

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse 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! :sparkles:

Kapil Soni
Kapil Soni
2,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.