blob: 50fe8901596d66c781407422bcba7433113f60d2 (
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)
|