def position(position): position_piece = 2,2 x,y = position if (x,y) == position_piece: return position_piece else: return None print(position(2,2))
print(position((2,2))) # ^ ^ # Extra parentheses make 2,2 into a single tuple.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)