Skip to content

Commit 9b62cf9

Browse files
authored
Merge pull request #119 from PdxCodeGuild/kacey-lab09-quotes-api
Kacey lab09 quotes api
2 parents 99009fb + e5a0c5b commit 9b62cf9

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

code/kaceyb/python/notes/lesson06/contacts.csv

Whitespace-only changes.

code/kaceyb/python/notes/lesson06/lesson_09.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
import math
1515

16-
17-
1816
def distance(p1, p2):
1917
dx = p1["x"] - p2["x"]
2018
dy = p1["y"] - p2["y"]
@@ -66,6 +64,7 @@ def distance(self, p):
6664
p1 = (5,2)
6765
p2 = Point(8,4)
6866

67+
6968
# print(p1.x)
7069
# print(p1.y)
7170
print(type(p1))

code/kaceyb/python/notes/lesson06/notes.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# with open('example.txt', 'a') as file:
22
# text = file.write('\nMORE TEXT')
3-
4-
# print(text)
53
# print(text)
64

75
# file = open('example2.txt', 'w')
@@ -15,7 +13,6 @@
1513
# colors = file.read().split()
1614
# print(colors)
1715

18-
1916
# colors = file.read().split()
2017
# print(colors)
2118

@@ -46,8 +43,6 @@
4643

4744
# phone_book = phone_book.split('\n')
4845
# name = input('Lookup name: ')
49-
50-
5146

5247
# phone_book = phone_book.split('\n')
5348
# name = input('Lookup name: ')
@@ -58,8 +53,6 @@
5853
# print(entry)
5954
# found_entry = True
6055

61-
62-
6356
# if not found_entry:
6457
# print('Contact not found')
6558
# name = input('Enter new contact name: ')
@@ -71,7 +64,6 @@
7164
# with open('phonebook2.txt', 'w') as file2:
7265
# file2.write('\n'.join(phone_book))
7366

74-
7567
# phone_book.append(name + " " + phone_number)
7668

7769
# phone_book.sort()
@@ -88,6 +80,5 @@
8880
# color = file.read()
8981
# color = color.split('\n')
9082
# color = Convert(color)
91-
# print(color)
9283

9384
# print(color)

code/kaceyb/python/notes/lesson06/notes2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from urllib import response
21
import requests
32

43
# response = requests.get('https://google.com')
@@ -28,7 +27,6 @@
2827

2928
# for i in range(len(categories)):
3029
# print(i, categories[i])
31-
3230

3331
# for i in range(len(categories)):
3432
# print(i, categories[i])
@@ -60,6 +58,7 @@
6058
print(film["description"])
6159

6260
print("-" * 10)
61+
6362
print(film['title'])
6463
print(film['release_date'])
6564
print(film['description'])

0 commit comments

Comments
 (0)