Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- miasto = input("Podaj miasto: ")
- adres = ('http://api.openweathermap.org/data/2.5/weather?appid=0c42f7f6b53b244c78a418f4f181282a&q=')
- url = adres + miasto
- json_data = requests.get(url).json()
- format_add = json_data['temp_max']
- print(format_add)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement