This is driving me crazy. I'm iterating a list in python and if something is empty, I want to change its value. Why this simple thing is not working?
>>> list = ['WHY', 'this', 'isnt', '', 'working']
>>> for item in list:
... if item == '':
... item = 'Nevermind'
...
>>>
>>> print list
['WHY', 'this', 'isnt', '', 'working']