import requests

def get_weather(api_key, location):
    url = f"http://api.openweathermap.org/data/2.5/weather?q={location}&appid={api_key}&units=metric"
    response = requests.get(url)
    data = response.json()
    if data["cod"] == 200:
        weather_info = {
            "Temperature": data["main"]["temp"],
            "Humidity": data["main"]["humidity"],
            "Wind Speed": data["wind"]["speed"]
        }
        return weather_info
    else:
        return None

def main():
    api_key = "YOUR_API_KEY"  # Replace with your OpenWeatherMap API key
    location = input("Enter the city name: ")
    weather_data = get_weather(api_key, location)
    if weather_data:
        print(f"Weather information for {location}:")
        for key, value in weather_data.items():
            print(f"{key}: {value}")
    else:
        print("Failed to fetch weather information. Please check your input.")

if __name__ == "__main__":
    main()