Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Multicolored Lamp by yoichi
class Lamp:
def __init__(self):
self._colors = ["Green", "Red", "Blue", "Yellow"]
def light(self):
self._colors = self._colors[1:] + self._colors[:1]
return self._colors[-1]
July 15, 2018
Comments: