Light Mode
Dark Mode
Why doesn't it work? This rule should work in this

def checkio(gameresult: list[str]) -> str: res1 = gameresult.count('X') res2 = gameresult.count('O') res3 = game_result.count('.')

if res_1 > res_2 and res_3 > 0:
    return 'X'
elif res_2 == res_1 and res_3 > 0:
    return 'O'
else:
    return 'D'
Created: Oct. 26, 2023, 2:54 p.m.
Updated: Oct. 26, 2023, 3:17 p.m.
0
13
User avatar
msibirov1975