position=input("Choose a position: ")
position=int(position)
while position not in list(range(1, 10)):
print("ONLY between 1 and 9: ")
position=input("Choose a position: ")
position=int(position)
print(f'chosen position is {position}')