1 2 3 4 5 6 7 8 9
class Fruit: @classmethod def list_fruits(cls): fruit = 'apple' print(fruit) def print_color(self, *colors): color = colors[1] print(color)