[Solved] Bad Request in Python


maybe this will help

import requests

city = input("What is the name of the city?: ")
url= "http://api.openweathermap.org/data/2.5/weather?q={city}&appid=*************".format(city=city)
response = requests.get(url)
print(response)

2

solved Bad Request in Python