Advertisement
Guest User

Untitled

a guest
Nov 7th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import requests
  2.  
  3. miasto = input("Podaj miasto: ")
  4. adres = ('http://api.openweathermap.org/data/2.5/weather?appid=0c42f7f6b53b244c78a418f4f181282a&q=')
  5. url = adres + miasto
  6. json_data = requests.get(url).json()
  7. format_add = json_data['temp_max']
  8. print(format_add)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement