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 Mixed Types

Olivia Chu
Olivia Chu
301 Points

In this task, declare a variable named rating and assign the value 7.5 my ans: var rating = 7.5

my ans: var rating = 7.5 I can't figure out more "Bummer! Make sure you're declaring a constant named title"

types.swift
// Enter your code below
var rating = 7.5
Olivia Chu
Olivia Chu
301 Points

I know the answer added the previous answer

let title = "A Dance with Dragons"

problem solve

2 Answers

Alexandra Barnett
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexandra Barnett
Front End Web Development Techdegree Graduate 46,473 Points

Hi Olivia! Do you still have the answer to task 1 there? Your answer is correct but it looks from your code snippet that you've deleted the previous code...code challenges expect the code to be left there which is why I think it's erroring ?.

// Enter your code below
let title = "A Dance with Dragons"
var rating = 7.5

Hope that helps - let me know if you have any questions ???

Olivia Chu
Olivia Chu
301 Points

You're right thank you ;)