Solving Complex Problems Through Programming - September 13 2018 Lesson Notes
What are we going to learn today?[edit]Welcome
import json
import requests
# documentation for this https://sunrise-sunset.org/api
# latitude = input("Enter your latitude: ")
# longitude = input("Enter your longitude: ")
response = requests.get('https://api.sunrise-sunset.org/json?lat=36.7201600&lng=-4.4203400')
# print(response.text)
# print(response.json)
parsed_json = json.loads(response.text)
# print(type(response.text))
foo = parsed_json['results']
print(foo['sunrise'])
|
What is our home learning?[edit]Please check google classroom for homework.
|
How am I being assessed today?[edit]I will assess you formatively today, and make a professional judgement to what extent you understand our learning material. I will use observation, your written work, answers to questions, and contribution to class discussions as data to make my decisions. I will also ask you to complete a self-assessment which I will use to help me guage how well you think you understand our material in class. |
|
As a computer scientist, you have:[edit]
|
|
Credits[edit] |