A small section of my program. A and B are suppose to be different but come out the same. A = B even after changing. Any suggestions.
def reveal_board(location1, location2, a):
b = a
for char in board:
if char == board[location1 - 1]:
b[location1 - 1] = char
if char == board[location2 - 1]:
b[location2 - 1] = char
else:
b = b
print_board(b)
if board[location1 - 1] == board[location2 - 1]:
return b
else:
return a