from random import randint from termcolor import colored error = colored("[***]", 'red') done = colored("[***]", 'green') sad = colored("[:*( Жаль, до свидания]", 'magenta') lst_zoo = [] class Critter(): def new(self, name): self.name = name self.stat_eat = randint(1, 10) self.stat_boredom = randint(1, 10) return self.name def zoo(self): lst_zoo.append(self.name) crit = Critter() crit.new("Амигос") crit1 = Critter() crit1.new("Олла") choice = None while choice != '0': choice = input("Ваш выбор: ") if choice == '0': print(done + "Успешно!" + sad) if choice == '1': print(lst_zoo)