21.11.2014 Views

Python Programming

Python Programming

Python Programming

SHOW MORE
SHOW LESS

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 Lists<br />

Assignment<br />

• Assignment to slices is also possible, and this can even change the size of<br />

the list or clear it entirely. In the example below list a[I : j] . When you<br />

slice the ith item is included but the jth item is excluded.<br />

25<br />

HP CONFIDENTIAL - ENABLEMENT ONLY, NOT FOR CUSTOMER USE.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!