import requests
import os
from pprint import pprint
from dotenv import load_dotenv

load_dotenv()

city = input('Enter a city: ')

base_url = "http://api.openweathermap.org/data/2.5/weather?appid="+os.getenv('API_KEY')+"&q="+city

weather_data = requests.get(base_url).json()

pprint(weather_data)
74c2e5b407e66e2374c2a319fe72322c261d7916
<mask token>

<mask token>
load_dotenv()
<mask token>
pprint(weather_data)

<mask token>
load_dotenv()
city = input('Enter a city: ')
base_url = 'http://api.openweathermap.org/data/2.5/weather?appid=' + os.getenv(
    'API_KEY') + '&q=' + city
weather_data = requests.get(base_url).json()
pprint(weather_data)

import requests
import os
from pprint import pprint
from dotenv import load_dotenv
load_dotenv()
city = input('Enter a city: ')
base_url = 'http://api.openweathermap.org/data/2.5/weather?appid=' + os.getenv(
    'API_KEY') + '&q=' + city
weather_data = requests.get(base_url).json()
pprint(weather_data)

import requests
import os
from pprint import pprint
from dotenv import load_dotenv

load_dotenv()

city = input('Enter a city: ')

base_url = "http://api.openweathermap.org/data/2.5/weather?appid="+os.getenv('API_KEY')+"&q="+city

weather_data = requests.get(base_url).json()

pprint(weather_data)