Weather Cloud Program
Weather Cloud Program
import urllib.request
print("====================")
print("Weather conditions : ", description)
print("====================")
print("=======================")
print("Temperature in Kelvin : ", temperature)
print("=======================")
f_temp = convertKtoF(float(temperature))
print("=========================")
print("Temperature in Fahrenheit : ", format(f_temp, ".2f"))
print("=========================")
#
# main code starts here
#
city="Denver"
country="US"
#processing
outputHeader() # user-defined function - make a function call
#getDescription(line)
#getTemperature(line)
except IOError:
print()
print("ERROR : IO error occurred!")
print()
#
# close the web page
#
print("Have a nice day!")
webPage.close()