iOS Functions in Swift Adding Power to Functions Returning Complex Values

Rea Rahhal
Rea Rahhal
Pro Student 4,732 Points

don't know what's wrong with my code

I am using a single parameter and comping the location against different values . Cn you please help ? Thanks in advance

// Enter your code below
func coordinates(location : String) -> (Double,Double) {
    switch location {
        case "Eiffel Tower": return (48.8582, 2.2945)
        case "Great Pyramid": return (29.9792, 31.1344)
        case "Sydney Opera House": return (33.8587, 151.2140)
        default: return (0,0)
Nick Frozz
Nick Frozz
31,289 Points

You forgot about an external name "for". It was so close ))