list = ['', '', '']
def board(mark):
list[mark] = "x"
print(list)
def main():
while True:
try:
mark = int(input("Выберите число: "))
board(mark)
except:
print("Выбире число от 0 до 2")
break
print(list) # > list = ['', '', '']
main()
print(list) # > list = ['x', 'x', 'x']