11
txyloveCoding
3 11
552/ 645
Last seen 6 years ago
Member for 6 years, 10 months, 17 days
Difficulty Normal
Best reviews / Newest reviews
Enum-veky 1
I think that a return can also do the job of yied ,like @classmethod def encode(cls, n): s = [] for i in cls : rep, n = divmod(n, i.value) s.append(rep * i.name) return s So why do you think that we should use yield instead of return ? just b More