parent
9f44b39a1f
commit
c41343bd53
1 changed files with 1 additions and 1 deletions
|
@ -29,4 +29,4 @@ weathers = {
|
|||
if "error" in query:
|
||||
print("API ERROR: " + query["error"]["message"])
|
||||
else:
|
||||
print(query["location"]["name"] + ", " + query["location"]["region"] + ", " + query["location"]["country"] + ": " + weathers[query["current"]["is_day"]][query["current"]["condition"]["code"]] + " " + query["current"]["condition"]["text"] + " " + str(query["current"]["temp_c"]) + "°F" + "(" + str(query["current"]["temp_c"]) + "°C)")
|
||||
print(query["location"]["name"] + ", " + query["location"]["region"] + ", " + query["location"]["country"] + ": " + weathers[query["current"]["is_day"]][query["current"]["condition"]["code"]] + " " + query["current"]["condition"]["text"] + " " + str(query["current"]["temp_c"]) + "°F (" + str(query["current"]["temp_c"]) + "°C)")
|
Loading…
Add table
Reference in a new issue