chun ping wang wrote: > i want to modify an iterator value. > > for x in someList > x = 1 for index, value in enumerate(someList): someList[index] = 1