# 1st loop iterates through user sentence list
for value in user_sentence:
# iterates through words_dict dictionary, the key is compared and the value is what replace value
for i in words_dict:
if value == i:
value = words_dict[i]
print(user_sentence[1])
I do not understand why the nested for loop is not working, when I change user_sentence[1] directly it works, but when I put it in the nested loop it does not work. What am I doing wrong?