forked from rubencocheno/network-programmability
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweek3-ex1.py
35 lines (24 loc) · 1.11 KB
/
week3-ex1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#Welcome to Week 3 of Network Programmability
#This is a list of exercises to get some exposure to RESTAPI using Python.
#Exercise 1
#Get the Weather of London for today
#Use the API Key under .nonsecrets file
#Find Latitude and Longitude of London and execute a Get and dump JSON all details as output
#Avoid any Loops
#Check requirements and endpoints in https://openweathermap.org/current
#Exercise 2
#Get the Weather of Great Malvern for today
#Use the API Key under .nonsecrets file
#Find City ID and execute a Get and dump JSON all details as output with temperature in Celsius
#Avoid any Loops
#Check requirements and endpoints in https://openweathermap.org/current
#Exercise 3
#Get the Weather for Lisbon, Portugal
#Use the API Key under .nonsecrets file
#Find the temperature in Celsius
#Avoid any Loops
#Check requirements and endpoints in https://openweathermap.org/current
#Exercise 4
#Compare all previous cities and return which one is the coldest and warmest by City (Temperature)
#Use the API Key under .nonsecrets file
#Check requirements and endpoints in https://openweathermap.org/current