iOS Swift Basics Swift Types Mixed Types

im not getting question 2 not right

here is what i wrote how come its not working? let title = "A Dance with Dragons" var rating = "7.5"

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

1 Answer

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

You're declaring 7.5 as a String, the above code will work as it declares it as a Double 👍

thank you