The List Data Structure
+
The List Data Structure
Introduction to Programming - Python
+ Variables vs. Lists
n So far we have been working with variables, which can be thought of as "buckets" that hold a particular piece of data
n Variables can only hold one piece of data at a time. Example
n x = 5 n y = 5.0 n z = `hello' n q = True
n However, there are times when we need to keep track of multiple pieces of data at the same time, and a single variable is limited to holding just one thing at a time
+ Lists
n Lists are considered a "sequence" object. Sequence objects have the ability to hold multiple pieces of data at the same time.
n We can use a single sequence variable to hold any number of values.
n In most programming languages we call these "arrays." In Python we call these "lists."
+ Lists vs.Variables
List
Variable
+ Variables vs. Lists
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- the structure of membranes worksheet
- data structure diagram
- the list nonmetals on the periodic table
- how the list crossword
- the list for writers app
- the enlisted force structure afi
- what is the list mtg
- outline the structure of the constitution
- connecting the concepts protein structure and function
- the plasma membrane structure and functions
- the list of lists
- mtg the list cards