>>> %Run L20B.py >>> pt = Point() >>> pt.x = 1 >>> pt.y = 2 >>> %Run L20B.py >>> pt = Point() >>> pt.x 0 >>> pt.y 0 >>> pt.x = 2 >>> pt.y = 3 >>> pt.x 2 >>> pt.y 3 >>> %Run L20B.py >>> p = Point(2,3) >>> p.x 0 >>> %Run L20B.py >>> p = Point(2,3) >>> p.x 2 >>> p.y 3 >>> p2 = Point() Traceback (most recent call last): File "", line 1, in TypeError: __init__() missing 2 required positional arguments: 'x' and 'y' >>> %Run L20B.py >>> p2 = Point() >>> p.x Traceback (most recent call last): File "", line 1, in NameError: name 'p' is not defined >>> p2.x 0 >>> p2.y 0 >>> print(p2) <__main__.Point object at 0x101bc6ba8> >>> %Run L20B.py >>> p2 = Point() >>> print(p2) (0,0) >>> %Run L20B.py >>> p1 = Point(1,2) >>> p2 = Point(2,3) >>> print(p1) (1,2) >>> print(p2) (2,3) >>> p3 = Point.addPoints(p1,p2) >>> print(p3) (3,5) >>> %Run L20B.py >>> p1 = Point(1,1) >>> p2 = Point(2,2) >>> p3 = p1 + p2 >>> print(p3) (3,3) >>> %Run L20B.py >>> p1 = Point(1,1) >>> p2 = Point(2,2) >>> p3 = p1 + p2 Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for +: 'Point' and 'Point' >>> ReadFile('us-500_2.csv') Traceback (most recent call last): File "", line 1, in NameError: name 'ReadFile' is not defined >>> %Run L20B.py File "/Users/jgrant/class/sp.2018/cs101/class/L20B.py", line 31 address='', city='', county='', state='', zip='', phone1='', \ ^ SyntaxError: invalid syntax >>> %Run L20B.py >>> ReadFile('us-500_2.csv') >>> %Run L20B.py >>> ReadFile('us-500_2.csv') Butt, James >>> %Run L20B.py >>> ReadFile('us-500_2.csv') Motley, Chauncey >>> %Run L20B.py >>> ReadFile('us-500_2.csv') Lawler, Merlyn >>> ReadFile('us-500_2.csv') Hanafan, Jolanda >>> %Run L20B.py >>> ReadFile('us-500_2.csv') Schieler, Glory Abdallah, Johnetta >>> ReadFile('us-500_2.csv') Blunk, Frederica Abdallah, Johnetta >>> ReadFile('us-500_2.csv') Jacobos, Refugia Abdallah, Johnetta >>> %Run L20B.py >>> %Run L20B.py >>> ReadFile('us-500_2.csv') Rochin, Xuan Abdallah, Johnetta >>> %Run L20B.py >>> ReadFile('us-500_2.csv') Stimmel, Portia >>> %Run L20B.py >>> ReadFile('us-500_2.csv') Traceback (most recent call last): File "", line 1, in File "/Users/jgrant/class/sp.2018/cs101/class/L20B.py", line 105, in ReadFile records_dict[250].printAll() File "/Users/jgrant/class/sp.2018/cs101/class/L20B.py", line 58, in printAll print(self.first) AttributeError: 'Record' object has no attribute 'first' >>> %Run L20B.py >>> ReadFile('us-500_2.csv') Portia Stimmel Peace Christian Center 3732 Sherman Ave Bridgewater Somerset NJ 08807 908-722-7128 908-670-4712 portia.stimmel@aol.com http://www.peacechristiancenter.com >>>