- 2.7k
- 1
- 27
- 36
Change your function code
from
def toString(self): return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format( self.__name, self.__height, self.__weight, self.__sound, self.__owner)
def toString(self):
return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format(
self.__name,
self.__height,
self.__weight,
self.__sound,
self.__owner)
to
def toString(self): return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format( self.get_name(), self.get_height(), self.get_weight(), self.get_sound(), self.get_owner())
def toString(self):
return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format(
self.get_name(),
self.get_height(),
self.get_weight(),
self.get_sound(),
self.get_owner())
Change your function code
from
def toString(self): return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format( self.__name, self.__height, self.__weight, self.__sound, self.__owner)
to
def toString(self): return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format( self.get_name(), self.get_height(), self.get_weight(), self.get_sound(), self.get_owner())
Change your function code
from
def toString(self):
return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format(
self.__name,
self.__height,
self.__weight,
self.__sound,
self.__owner)
to
def toString(self):
return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format(
self.get_name(),
self.get_height(),
self.get_weight(),
self.get_sound(),
self.get_owner())
Change your function code
from
def toString(self): return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format( self.__name, self.__height, self.__weight, self.__sound, self.__owner)
to
def toString(self): return "{} is {} cm tall and {} kilograms and say {} and the owner is {}".format( self.get_name(), self.get_height(), self.get_weight(), self.get_sound(), self.get_owner())