blob: 64541405fe01c5d470a978d6f5e8b94e1866985f (
plain)
1
2
3
4
5
6
7
8
9
|
class Fruit:
@classmethod
def list_fruits(cls):
cls = 'apple' # [self-cls-assignment]
def print_color(self, *colors):
self = "red" # [self-cls-assignment]
color = colors[1]
print(color)
|