Skip to content

Commit 9bd402d

Browse files
committed
submitting lab11 v1 and v2+3 combined
1 parent 345a5d9 commit 9bd402d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

code/jonpan/contacts2.csv

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ cello,[email protected],432-412-3921
33
felita,[email protected],103-621-4869
44
gene,[email protected],177-133-7816
55
vitia,[email protected],242-191-0524
6-
dalston,[email protected],253-115-8593
7-
jon, [email protected], 347-720-0267
8-
bob, [email protected], 123-456-2342
6+
dalston,[email protected],253-115-8593

code/jonpan/lab11_v1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Lab11 v1
2+
13
with open('contacts.csv', 'r') as file: # open the file
24
lines = file.read().split('\n') # when encounter a new line character, store into lines variable
35

code/jonpan/lab11_v2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# This combines version 2 and 3
1+
# Lab 11, this combines version 2 and 3
22

33
class ContactList:
44

55
contacts = {}
66

77
def __init__(self):
88

9-
with open('contacts2.csv', 'r') as file: # open the file
10-
lines = file.read().split('\n') #when encounter a new line character, store into lines variable
9+
with open('contacts2.csv', 'r') as file:
10+
lines = file.read().split('\n')
1111

1212
header = lines[0].split(',')
1313

0 commit comments

Comments
 (0)