zlacker

[parent] [thread] 0 comments
1. Zak+(OP)[view] [source] 2024-08-27 16:40:42
And here's what cond could look like in Python syntax:

    def color(word, letter, idx):
        cond:
            word[idx] == letter: return GREEN
            letter in word: return YELLOW
            True: return GREY
[go to top]