Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
3 changes: 1 addition & 2 deletions code/kaceyb/python/notes/lesson06/lesson_09.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

import math



def distance(p1, p2):
dx = p1["x"] - p2["x"]
dy = p1["y"] - p2["y"]
Expand Down Expand Up @@ -66,6 +64,7 @@ def distance(self, p):
p1 = (5,2)
p2 = Point(8,4)


# print(p1.x)
# print(p1.y)
print(type(p1))
Expand Down
9 changes: 0 additions & 9 deletions code/kaceyb/python/notes/lesson06/notes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# with open('example.txt', 'a') as file:
# text = file.write('\nMORE TEXT')

# print(text)
# print(text)

# file = open('example2.txt', 'w')
Expand All @@ -15,7 +13,6 @@
# colors = file.read().split()
# print(colors)


# colors = file.read().split()
# print(colors)

Expand Down Expand Up @@ -46,8 +43,6 @@

# phone_book = phone_book.split('\n')
# name = input('Lookup name: ')



# phone_book = phone_book.split('\n')
# name = input('Lookup name: ')
Expand All @@ -58,8 +53,6 @@
# print(entry)
# found_entry = True



# if not found_entry:
# print('Contact not found')
# name = input('Enter new contact name: ')
Expand All @@ -71,7 +64,6 @@
# with open('phonebook2.txt', 'w') as file2:
# file2.write('\n'.join(phone_book))


# phone_book.append(name + " " + phone_number)

# phone_book.sort()
Expand All @@ -88,6 +80,5 @@
# color = file.read()
# color = color.split('\n')
# color = Convert(color)
# print(color)

# print(color)
3 changes: 1 addition & 2 deletions code/kaceyb/python/notes/lesson06/notes2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from urllib import response
import requests

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

# for i in range(len(categories)):
# print(i, categories[i])


# for i in range(len(categories)):
# print(i, categories[i])
Expand Down Expand Up @@ -60,6 +58,7 @@
print(film["description"])

print("-" * 10)

print(film['title'])
print(film['release_date'])
print(film['description'])
Expand Down