Please don't mark this as an answered question because I think it is not about the general program but here is a specific thing that I don't realize. So the problem is when I run the program it should first remove the "araba" string and then insert "car" string in its existing place. So I uptaded the dict everytime and print it but nothing happens? Thx
tr_mean=["araba","otobus","kus"]
en_mean=["car","bus","dog"]
dictionary={}
for x in tr_mean:
index=tr_mean.index(x)
dictionary[x]=en_mean[index]
print tr_mean.index("araba")
for x in tr_mean:
index=tr_mean.index(x)
dictionary[x]=en_mean[index]
print words
del tr_mean[tr_mean.index("araba")]
for x in tr_mean:
index=tr_mean.index(x)
dictionary[x]=en_mean[index]
print words
tr_mean.insert(0,"car")
for x in tr_mean:
index=tr_mean.index(x)
dictionary[x]=en_mean[index]
print words