{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Kinds of sequences so far lists strings and tuples

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: s to the le[ of the “=“   Expression with two values (inside a list) to the right of the “=“ 7 CMPUT174  ­ ­ References & Files Tuples (and lists) can be heterogeneous • We can have different kinds of elements inside a tuple: 8 CMPUT174  ­ ­ References & Files Python sequences so far • We have seen three kinds of sequences so far: lists, strings, and tuples • Similari<es:   We iterate over their elements using the for command   We access their elements through indexes • Differences: lists tuples strings kinds of elements? heterogeneous: anything can be an element hete...
View Full Document

{[ snackBarMessage ]}