This is because on line 5, when you use variable = new_word, instead of copying the value of new_word into variable it merely creates a pointer. So, now both variable and new_word are pointing to the same value in memory. Later on, when you reverse new_word and then compare variable and new_word it will always return true as they are both pointing to the same variable.
To avoid this you can use the deepcopy method in copy module like this:
import copy
variable = copy.deepcopy(new_word)