I am confused how python is iterating through this dictionary. From python's documentation, the itervalues returns an iterator over the dictionary's values.
dict = {"hello" : "wonderful", "today is" : "sunny", "more text" : "is always good"}
for x in dict.itervalues():
x = x[2:]
print dict
This prints out the original dictionary unchanged. Why is that? If I am saying the value at position x is "blabla", why is it not getting set?