Python Programming
Python Programming
Python Programming
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Python</strong> <strong>Programming</strong><br />
Basics<br />
Working with Strings<br />
Assigning to an indexed position<br />
• Assigning to an indexed position in the string results in an<br />
error<br />
>>> word[0] = 'x'<br />
Traceback (most recent call last):<br />
File "", line 1, in ?<br />
TypeError: object doesn't support item<br />
assignment<br />
Positions can be inferred<br />
21<br />
HP CONFIDENTIAL - ENABLEMENT ONLY, NOT FOR CUSTOMER USE.