Replacing If/Else Statements Python
Probabily there's a nicer solution, but maybe something like this?
for i in range(3):
a = set(nested_list[i,:])
b = set(nested_list[:,i])
if(len(a) == 1 && nested_list[i,0] != '_')
print(nested_list[i,0], " wins")
elif(len(b) == 1 && nested_list[0,i] != '_')
print(nested_list[0,i], " wins")
if (((nested_list[0][0] == nested_list[1][1] == nested_list[2][2]) || nested_list[2][0] == nested_list[1][1] == nested_list[0][2])) && nested_list[1][1] != '_'):
print(nested_list[1][1], " wins")