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

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