Im geting a syntax erron in an if statement
def player_input(player):
position = int(input('Choose a position: '))
if position = 1 or position = 2 or position = 3 or position = 4 or position = 5 or position = 6 or position = 7 or position = 8 or position = 9:
board_lst[position] = str(player)
else:
print('Wrong answer')
The game is a simple Tic Tac Toe game. Im still a beginner so i appreciate any help!
Aucun commentaire:
Enregistrer un commentaire