Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\Users\mil28\Desktop\Person2.py", line 71, in p = Person("Joel", 65, (1954, 11, 4), joels_children) NameError: name 'joels_children' is not defined >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\Users\mil28\Desktop\Person2.py", line 73, in if p.__eq__(1): File "C:\Users\mil28\Desktop\Person2.py", line 69, in __eq__ raise TypeError("Person can only be compared to another person.") TypeError: Person can only be compared to another person. >>> ================================ RESTART ================================ >>> children are: >>> ================================ RESTART ================================ >>> children are: children are: child = Alice >>> ================================ RESTART ================================ >>> children are: children are: child = Alice Traceback (most recent call last): File "C:\Users\mil28\Desktop\Person2.py", line 83, in joel.print_children() File "C:\Users\mil28\Desktop\Person2.py", line 11, in print_children print(' child =', c.name) AttributeError: 'int' object has no attribute 'name' >>> a = [1,2,3] >>> shallow = a >>> deep = list(a) >>> a.append(4) >>> a [1, 2, 3, 4] >>> shallow [1, 2, 3, 4] >>> deep [1, 2, 3] >>> ================================ RESTART ================================ >>> children are: children are: >>> ================================ RESTART ================================ >>> children are: children are: child = Alice >>> list("Joel") ['J', 'o', 'e', 'l'] >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\Users\mil28\Desktop\Person2.py", line 80, in joel = Person("Joel", 65, (1954, 11, 4), "Joel") File "C:\Users\mil28\Desktop\Person2.py", line 8, in __init__ self.new_child(c) File "C:\Users\mil28\Desktop\Person2.py", line 17, in new_child raise TypeError('child must be a Person') TypeError: child must be a Person >>> ================================ RESTART ================================ >>> c = J Traceback (most recent call last): File "C:\Users\mil28\Desktop\Person2.py", line 81, in joel = Person("Joel", 65, (1954, 11, 4), "Joel") File "C:\Users\mil28\Desktop\Person2.py", line 9, in __init__ self.new_child(c) File "C:\Users\mil28\Desktop\Person2.py", line 18, in new_child raise TypeError('child must be a Person') TypeError: child must be a Person >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\Users\mil28\Desktop\Person2.py", line 79, in joel = Person("Joel", 65, (1954, 11, 4), "Joel") File "C:\Users\mil28\Desktop\Person2.py", line 7, in __init__ self.new_child(c) File "C:\Users\mil28\Desktop\Person2.py", line 16, in new_child raise TypeError('child must be a Person') TypeError: child must be a Person >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:\Users\mil28\Desktop\Person2.py", line 79, in joel = Person("Joel", 65, (1954, 11, 4), [alice]) File "C:\Users\mil28\Desktop\Person2.py", line 7, in __init__ self.new_child(c) File "C:\Users\mil28\Desktop\Person2.py", line 18, in new_child self.__children.append(child) AttributeError: 'Person' object has no attribute '_Person__children' >>> ================================ RESTART ================================ >>> err Traceback (most recent call last): File "C:\Users\mil28\Desktop\Person2.py", line 84, in print('name =', joel.name) NameError: name 'joel' is not defined >>> ================================ RESTART ================================ >>> name = Joel children are: child = Alice child = Joel Traceback (most recent call last): File "C:\Users\mil28\Desktop\Person2.py", line 91, in joels_children.append(alice) NameError: name 'joels_children' is not defined >>> ================================ RESTART ================================ >>> Alice: black hair and brown eyes Bob: brown hair and green eyes Carol: brown hair and brown eyes Changing Carol's hair to red. Alice: black hair and brown eyes Bob: red hair and green eyes Carol: red hair and brown eyes >>> ================================ RESTART ================================ >>> Alice: black hair and brown eyes Bob: brown hair and green eyes Carol: black hair and brown eyes Changing Carol's hair to red. Alice: black hair and brown eyes Bob: brown hair and green eyes Carol: red hair and brown eyes >>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "C:/Users/mil28/Desktop/aggregation_ex_sol.py", line 88, in carol = alice.reproduce(bob, 'Carol') File "C:/Users/mil28/Desktop/aggregation_ex_sol.py", line 70, in reproduce hcolor = random.choice(self.__hair_color, mate.__hair_color) TypeError: choice() takes 2 positional arguments but 3 were given >>> ================================ RESTART ================================ >>> Alice: black hair and brown eyes Bob: brown hair and green eyes Carol: brown hair and brown eyes Changing Carol's hair to red. Alice: black hair and brown eyes Bob: brown hair and green eyes Carol: red hair and brown eyes >>>