I've tried to look at other answers with this same problem but I still can not fix this. Please help me with this code which is for a weather app. The problem is on my let task = sessionDataTask line.
import Foundation
protocol WeatherServiceDelegate {
    func setWeather(weather: Weather)
}
class WeatherService {
    var delegate: WeatherServiceDelegate?
    func getWeather(city: String)  {
        let path = "http://api.openweathermap.org/data/2.5/weather?q=London,uk&appid=79933f5c001b81aecc59976577f8134f"
        let url = NSURL(string: path)
        let session = URLSession.shared
        let task = session.dataTask(with: url) { (data, response, error) in
            print(data)
        }
        task.resume()
    }
}
 
     
    