Get the weather in san diego and print it as text

import requests

url = "https://open-weather13.p.rapidapi.com/city/San Diego"

headers = {
	"X-RapidAPI-Key": "c0a73cc90fmshdc3d44c5a5834b9p18a538jsn06680b483b06",
	"X-RapidAPI-Host": "open-weather13.p.rapidapi.com"
}

response = requests.request("GET", url, headers=headers)

print(response.text)
{"coord":{"lon":-117.1573,"lat":32.7153},"weather":[{"id":801,"main":"Clouds","description":"few clouds","icon":"02d"}],"base":"stations","main":{"temp":73.27,"feels_like":74.07,"temp_min":68.76,"temp_max":81.05,"pressure":1017,"humidity":80},"visibility":10000,"wind":{"speed":7,"deg":254,"gust":10},"clouds":{"all":20},"dt":1665604589,"sys":{"type":2,"id":2019527,"country":"US","sunrise":1665582619,"sunset":1665623970},"timezone":-25200,"id":5391811,"name":"San Diego","cod":200}

Using JSON and inputs for the user can select a city and category

run = True
while run:
    print("What city would you like to see the weather in? (type bye to close)")
    city = input()
    print(input)
    if(input == "<bound method Kernel.raw_input of <ipykernel.ipkernel.IPythonKernel object at 0x12059eb30>>"):
        print("Bye bye")
        break

    # Use input to pull city as json   
    import requests

    url = "https://open-weather13.p.rapidapi.com/city/" + city
    headers = {
    "X-RapidAPI-Key": "c0a73cc90fmshdc3d44c5a5834b9p18a538jsn06680b483b06",
    "X-RapidAPI-Host": "open-weather13.p.rapidapi.com"
    }
    response = requests.request("GET", url, headers=headers)
    json = response.json()

    # Use another while loop for they can see all categories
    run2 = True
    while run2:
        category = input("What category would you like to see the weather in? (type bye to close)")
        if(category == "bye"):
            print("Bye bye")
            break
        try:
            print("Ok, heres data for " + category + ": " + json[category])
        except:
            print("Not a valid category")
What city would you like to see the weather in? (type bye to close)
<bound method Kernel.raw_input of <ipykernel.ipkernel.IPythonKernel object at 0x12059eb30>>