I'm using anaconda Python 3 notebook. And When I Try to append anything to a list, my pc goes mad. It gets slow, the RAM goes to 95% and it just wont work anymore. But i noticed somethin, the problem only occurs when I use a for statement. and if I use slice brackets I dont have that problem, so thi would be like this:
Problem:
for element in anylist:
anylist.append('whatever')
(So far, i think this one never stop working and it may be causing some truobles. I dont really know)
No problem:
for element in anylist[:]:
anylist.append('whatever')
Another detail: All this started right before I imported the String module, and the Os module. But now it happens every time i write single code.
Python is in 64 bits as it has to be in my case. If you could help me I would appreciate it.