Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
using tuple solution in Clear category for Multicolored Lamp by thealfest1
class Lamp:
def __init__(self):
self.count = 1
def light(self):
self.count = (self.count + 1) % 4
return ("Blue", "Yellow", "Green", "Red")[self.count]
Dec. 4, 2019
Comments: