Solving Complex Problems Through Programming - September 17 2018 Lesson Notes

From Computer Science Wiki

Class plan.png 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'])

Homework.png What is our home learning?[edit]

Please check google classroom for homework.


Target.png 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.

Computer1.png As a computer scientist, you have:[edit]

  • Confidence in dealing with complexity
  • Persistence in working with difficult problems
  • Tolerance for ambiguity
  • The ability to deal with open-ended problems
  • The ability to communicate and work with others to achieve a common goal or solutio

Credit.png Credits[edit]