This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import json | |
def kelvin_to_celsius(temp): | |
''' | |
This function transforms temperature in Kelvins to Celsius | |
''' | |
return round(temp - 273.15) | |
def weather_search(): |