Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> RESTART: C:/Users/Bruce Norton/AppData/Local/Programs/Python/Python37/ducky.py >>> RESTART: C:/Users/Bruce Norton/AppData/Local/Programs/Python/Python37/ducky.py >>> duckOne=Duck("Sam","whote","male") >>> duckOne.sayHello() Hello, my name is {}. What is yours? Sam >>> RESTART: C:/Users/Bruce Norton/AppData/Local/Programs/Python/Python37/ducky.py >>> duckOne=Duck("Sam","whote","male") >>> duckOne.sayHello() Hello, my name is Sam. What is yours? >>> duckOne.getColor() 'whote' >>> print(duckOne) <__main__.Duck object at 0x0000000002EB7128> >>> duckOne <__main__.Duck object at 0x0000000002EB7128> >>> RESTART: C:/Users/Bruce Norton/AppData/Local/Programs/Python/Python37/ducky.py >>> duckOne=Duck("Sam","white","male") >>> duckOne.sayHello() Hello, my name is Sam. What is yours? >>> print(duckOne) The white male is named Sam. >>> RESTART: C:/Users/Bruce Norton/AppData/Local/Programs/Python/Python37/ducky.py >>> duckOne=Duck("Sam","white","male") >>> duckOne.sayHello() Hello, my name is Sam. What is yours? >>> print(duckOne) The white male duck is named Sam. >>> duckOne.haveBaby() Male ducks cannot have babies. >>> duckOne.getBabies() Male ducks do not have babies. >>> duckTwo=("Roxanne","brown","female") >>> duckTwo.getBabies() Traceback (most recent call last): File "", line 1, in duckTwo.getBabies() AttributeError: 'tuple' object has no attribute 'getBabies' >>> duckTwo=Duck("Roxanne","brown","female") >>> duckTow.getBabies() Traceback (most recent call last): File "", line 1, in duckTow.getBabies() NameError: name 'duckTow' is not defined >>> duckTwo.getBabies() 0 >>> duckTow.haveBabies() Traceback (most recent call last): File "", line 1, in duckTow.haveBabies() NameError: name 'duckTow' is not defined >>> duckTwo.haveBabies() Traceback (most recent call last): File "", line 1, in duckTwo.haveBabies() AttributeError: 'Duck' object has no attribute 'haveBabies' >>> duckTwo.haveBaby() >>> duckTwo.getBabies() 2 >>> duckTow.haveBaby() Traceback (most recent call last): File "", line 1, in duckTow.haveBaby() NameError: name 'duckTow' is not defined >>> duckTwo.haveBaby() >>> duckTwo.getBabies() 5 >>> print(duckTwo) The brown female duck is named Roxanne. >>>