Examples of data structures are:
Using data structures, we're able to save a lot of information in a ready-to-use form.[a, b, c] # list
{a :1, b :2, c :3} # dictionary
"abc" # string
(a, b, c) # tuple
kirby urner wrote:
> ...
> Python:
> shell mode
> primitive objects vs. collections
> Collections:
> list
> dictionary
> string
> tuple
'd move string out of Collections. It cannot have elements of a
different type (there is no character type), nor is it mutable.
Better to be more standard and not call it a collection. Later
you can say it behaves in some ways like an ordered list of the
individual characters in the string.
--Scott David Daniels
Scott.Daniels@Acm.Org
_______________________________________________
Edu-sig mailing list
Edu-sig@python.org
http://mail.python.org/mailman/listinfo/edu-sig