Q. Design a Tic-Tac-Toe game in python by taking position inputs of both 'X' and 'O' users, displaying the move after each turn and displaying the winner in the end.
Example:
In:
Player X: 4
Out:
| |
-----------
| X |
-----------
| |
In:
Player O: 2
Out:
| | O
-----------
| X |
-----------
| |
In:
Player X: 0
Out:
X | | O
-----------
| X |
-----------
| |
In:
Player O: 5
Out:
X | | O
-----------
| X | O
-----------
| |
In:
Player X: 8
Out:
X | | O
-----------
| X | O
-----------
| | X
Player X is the winner!!!