2 ms·
And here's what cond could look like in Python syntax: def color(word, letter, idx): cond: word[idx] == letter: return GREEN
by Zak 2y ago
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