Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Swift Basics Swift Types Recap: Swift Types

Noah Muhammad
PLUS
Noah Muhammad
Courses Plus Student 641 Points

last line of code interpolated still not working

Please help

types.swift
// Enter your code below
let firstValue : Int = 10
let secondValue : Int = 8
let product : Int = firstValue * secondValue
let output /*interpolatedOutput*/ : String = "The product of \(firstValue) times \(secondValue) is \(product)." 
Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

That is truly odd. I see no errors and if I copy paste your code into the challenge, it passes both steps! My suggestion: copy/paste what you have posted above and restart the challenge and paste it in. It should pass. :sparkles:

2 Answers

Can you elaborate on "not working"?

I tried the code you have on the page and it worked. The only thing that I noticed is the extra period at the end of your output.

Noah Muhammad
PLUS
Noah Muhammad
Courses Plus Student 641 Points

Thank you Jen, It finally worked after re-doing the whole challenge