Skip to content

Instantly share code, notes, and snippets.

@bryanyang0528
Created July 3, 2014 15:23
Show Gist options
  • Save bryanyang0528/ad6bb4f9148c81b9369f to your computer and use it in GitHub Desktop.
Save bryanyang0528/ad6bb4f9148c81b9369f to your computer and use it in GitHub Desktop.
text = "AbCdEf"
text[0] = "1"
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-10-639914bf643c> in <module>()
1
2 text = "AbCdEf"
----> 3 text[0] = "1"
TypeError: 'str' object does not support item assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment