MIS 304 Lecture Notes - Lecture 12: Tuple

43 views2 pages

Document Summary

An object that contains multiple items of data, stored one after another. You can perform operations on a sequence to examine and manipulate the items stored in it. An object that contains multiple data items. List(): can convert certain types of objects to lists. You can concatenate lists with other lists. Element: each item that is stored in a list. Makes multiple copies of a list and joins them all together. Arrays: sequence structures created in most programming languages. The index of the last element is 1 less than the number of elements in the list. Negative indexes: used to identify element positions relative to the end of the list. Indexerror: exception raised when an invalid index is used. Len(list): returns the length of a sequence. A span of items that are taken from a sequence. If you leave out the start index in a slicing expression, python uses 0.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents