¡@

Home 

python Programming Glossary: srr

'str' object does not support item assignment in Python

http://stackoverflow.com/questions/10631473/str-object-does-not-support-item-assignment-in-python

is like below import string import re str Hello World j 0 srr for i in str srr j i #'str' object does not support item assignment.. string import re str Hello World j 0 srr for i in str srr j i #'str' object does not support item assignment j j 1 print.. #'str' object does not support item assignment j j 1 print srr In C the code may be i j 0 while str i ' 0' srr j str i How..