# Hunter Schafer, hschafer # This file defines a class for cats class Cat: """ A simple class that represents a cat with a name and number of lives. """ def __init__(self, name, lives): """ Constructs a Cat with the given name and number of lives """ self.name = name self.lives = lives def add_lives(self, lives): """ Adds the given number of lives to this Cat """ self.lives += lives def get_info(self): """ Returns a str representation of this Cat. 'name: lives' """ # Could do it with concatenation # return self.name + ': ' + str(self.lives) return f'{self.name}: {self.lives}'