import random class Person: def __init__(self, persons_name, shirt_color = "blue"): self.name = persons_name self.shirt_color = shirt_color def get_shirt_color(self): return self.shirt_color def get_name(self): return self.name def change_shirt(self): colors = ["blue", "red", "green", "funny"] self.shirt_color = random.choice(colors) def __str__(self): return self.name + ", wearing a " + self.shirt_color + " shirt"