Why? does this happen?
Hello, this is my code, its a part of a tic-tac-toe game, And why doesnt it print the "I am here"? Cells = ['x', 'x', 'o', 'o', 'x', 'o', 'o', 'x', 'x'] x = "x" o = "o" n = "0" D = "=" def whoWon(): if Cells == ['x', 'x', 'x', '', '', '', '', '', ''] or \ Cells == ['x', '', '', '', 'x', '', '', '', 'x'] or \ Cells == ['', '', 'x', '', 'x', '', 'x', '', ''] or \ Cells == ['', '', '', 'x', 'x', 'x', '', '', ''] or \ Cells == ['', '', '', '', '', '', 'x', 'x', 'x'] or \ Cells == ['x', '', '', 'x', '', '', 'x', '', ''] or \ Cells == ['', 'x', '', '', 'x', '', '', 'x', ''] or \ Cells == ['', '', 'x', '', '', 'x', '', '', 'x']: return x if Cells == ['o', 'o', 'o', '', '', '', '', '', ''] or \ Cells == ['o', '', '', '', 'o', '', '', '', 'o'] or \ Cells == ['', '', 'o', '', 'o', '', 'o', '', ''] or \ Cells == ['', '', '', 'o', 'o', 'o', '', '', ''] or \ Cells == ['', '', '', '', '', '', 'o', 'o', 'o'] or \ Cells == ['o', '', '', 'o', '', '', 'o', '', ''] or \ Cells == ['', 'o', '', '', 'o', '', '', 'o', ''] or \ Cells == ['', '', 'o', '', '', 'o', '', '', 'o']: return o for i in Cells: if i == '': return n else: print("I am here") Hope you can help me.