Simply, I am trying to fill up the dictionary from two lists, the first list has treated as the keys where all have the same word "text". And the second list has treated as values.
List_1 = ["text", "text", "text"]
List_2 = ["Programmer", "Engineer", "Art Therapist"]
data_dict = {}
for j in range(len(List_1)):
data_dict[List_1[j]] = List_2 [j]
print(data_dict)
#Expected output:
{'text': 'Programmer', 'text': 'Engineer', 'text': 'Art Therapist'}
#What I am getting is only:
{'text': 'Art Therapist'}
Why overwriting is happening? Can anyone help with this?