Question: PYTHON (5 points) What would be the output of the following program? class Fish: def init (self, name, color, length): self . name = name
PYTHON

(5 points) What would be the output of the following program? class Fish: def init (self, name, color, length): self . name = name self. color = color self.length = length def info(self): print(self .name, " is a fish.") print (self.name+" s color is", self . colort".") print(" My fish is", self. length, " "cm. long.") ted = Fish("Ted", ' gold" , 3) holly = Fish("'Holly", "silver", 5) holly . name ted . info ()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
